More stuff for intro texts.

This commit is contained in:
James Cole
2017-07-16 18:14:29 +02:00
parent 7f4fd2c52f
commit 021d0e6359
5 changed files with 42 additions and 21 deletions

View File

@@ -68,6 +68,7 @@ class Controller extends BaseController
// get shown-intro-preference:
if (auth()->check()) {
$route = Route::currentRouteName();
$route = str_replace('.', '_', $route);
$key = 'shown_demo_' . $route;
$config = config('intro.' . $route);
$shownDemo = Preferences::get($key, false)->data;