diff --git a/.env.example b/.env.example index 8c206da4..46052786 100644 --- a/.env.example +++ b/.env.example @@ -32,6 +32,12 @@ APP_KEY=SomeRandomStringOf32CharsExactly APP_URL=http://localhost +# Turn this to true if you want your app to react like a demo. +# The Demo mode reset the app content every hours and set a generic demo user. + +IS_DEMO_APP=false + + # The log channel defines where your log entries go to. # 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/. # Several other options exist. You can use 'single' for one big fat error log (not recommended). diff --git a/config/app.php b/config/app.php index b993fbb0..8bb6a332 100644 --- a/config/app.php +++ b/config/app.php @@ -32,7 +32,7 @@ */ 'options' => [ - 'isDemoApp' => false, + 'isDemoApp' => env('IS_DEMO_APP', false), 'showTokenAsDot' => false, ],