how to use php function str_replace in laravel framework.
Array key names in table column names, so keys have "_" like first_name, last_name, etc. I want to remove these "_" in the blade file. my requirement is to replace the line in the .blade.php file.
I am trying to use this php code but it is useless.
<th>{{str_replace('_', ' ', $str)}}</th>
thank
source
share