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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire