mercredi 30 octobre 2019

Using two variable how to access controller 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;


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire