A minor release. The demonstration mode that runs the public demo is no longer part of the application. It comes from lauroguedes/laravel-demo-mode, extracted from this project. An installation that never turned the demo on sees no difference. One that runs a demo needs the renamed settings under Upgrading.
Release notes on GitHub · Every change since v2.0.0
Highlights
- Demo mode is a package. The scheduled reset, the rotating administrator
password filled in on the sign-in page, the restrictions that stop a stranger
abusing the server, and the notice that the data is temporary all come from
lauroguedes/laravel-demo-mode, configured inconfig/demo.php.
Added
php artisan demo:doctoraudits the demo configuration and exits non-zero on anything that would destroy data or publish a secret.- The demo notice is a floating bar whose wording and appearance are read from
the environment (
DEMO_BANNER_*), so a demo can be restyled without changing code. - The reset follows a cron expression,
DEMO_RESET_SCHEDULE, and the notice's countdown is derived from the same expression, so it never promises a reset that is not coming.
Upgrading
Nothing is required unless this installation runs a demo. If it does:
- Rename
SSO_DEMO_MODEtoDEMO_MODE. - Replace
SSO_DEMO_RESET_HOURSwithDEMO_RESET_SCHEDULE, a cron expression. Every six hours is"0 */6 * * *". - Replace any call to
php artisan sso:demo-resetwithphp artisan demo:reset. The package schedules the reset itself, so the usualschedule:runcron entry is all it needs. - Run
php artisan demo:doctorbefore the first scheduled reset.