The answer to this question is:
Route::getCurrentRoute()->getAction()
Which returns something that looks like:
array (size=6)
'before' => string 'auth' (length=4)
'as' => string 'test' (length=4)
'uses' =>
object(Closure)[138]
'controller' => string 'HomeController@getTest' (length=22)
'namespace' => null
'prefix' => null
Hat tip to Barryvdh from here:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community