Fix help button.

This commit is contained in:
James Cole
2017-07-16 18:28:46 +02:00
parent 021d0e6359
commit 77d077ec08
3 changed files with 6 additions and 5 deletions

View File

@@ -68,6 +68,7 @@ class Controller extends BaseController
// get shown-intro-preference:
if (auth()->check()) {
$route = Route::currentRouteName();
$originalRoute = $route;
$route = str_replace('.', '_', $route);
$key = 'shown_demo_' . $route;
$config = config('intro.' . $route);
@@ -78,6 +79,7 @@ class Controller extends BaseController
}
View::share('shownDemo', $shownDemo);
View::share('current_route_name', $route);
View::share('original_route_name', $originalRoute);
}
return $next($request);