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
Route::current()->getActionName()?route()helper by the wayrequest()->route()->getAction()is enough for nearly everybody, you can call it on the controller constructor or in a middleware. There is a reason if a function like you asked does not exist yet in the laravel codebase: nobody needs it. And you did not explained why do you need it. So until explained it is an XY problem for me also.