vendredi 30 août 2019

Get controller and action of route in Laravel

I want to resolve the controller name and action which are configured for a route I have a route:

Route::get('/somePage','SomeController@someAction');

Can I get the controller name and action using something like:

resolve('/somepage');

to receive the same result which I can get from Route::current()->getActionName()

App\Http\Controllers\SomeController@someAction



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

Aucun commentaire:

Enregistrer un commentaire