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;


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2oyTuXq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire