Skip to content

Commit

Permalink
Merge pull request thedevdojo#957 from turtuga/menu_404_page
Browse files Browse the repository at this point in the history
menu on 404 page
  • Loading branch information
marktopper authored Mar 21, 2017
2 parents 6ca6f0d + df5996a commit 98eaf16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/VoyagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ protected function registerViewComposers()
*/
protected function addStorageSymlinkAlert()
{
$currentRouteAction = app('router')->current()->getAction();
if (app('router')->current() !== null) {
$currentRouteAction = app('router')->current()->getAction();
} else {
$currentRouteAction = null;
}
$routeName = is_array($currentRouteAction) ? array_get($currentRouteAction, 'as') : null;

if ($routeName != 'voyager.dashboard') {
Expand Down

0 comments on commit 98eaf16

Please sign in to comment.