Closed mattrandallbecker closed 9 years ago
Replacing
$routeAction = $this->_router->currentRouteAction();
with
$routeExploded = explode('\',$this->_router->currentRouteAction()); $routeAction = end($routeExploded );
seems to make the functions behavior match the documentation
I just created a pull request instead of leaving the issue open.
I'm not sure if this is new for Laravel 5 or what, but specifically with this code
$this->_router->currentRouteAction() returns the full path of the action
i.e. (App\Http\Controllers\MyController@index rather than MyController@index)
So when using Active::action('MyController@index') it will fail when following the documentation.