I want to access a controller function from blade file in laravel.
My Code:
Blade.php
use App\Http\Controllers\myController;
$newControl = new myController;
$function = 'myfunction()';
echo $newControl->$function;
I want to access a controller function from blade file in laravel.
My Code:
Blade.php
use App\Http\Controllers\myController;
$newControl = new myController;
$function = 'myfunction()';
echo $newControl->$function;