October CMS resources and help articles

Simple and to the point. Optimized by the community.

Enable / Disable Maintenance mode from command line

1
by mjauvin, last modified on November 14th, 2019

To enable Maintenance mode:

# php artisan tinker <<< "Cms\Models\MaintenanceSetting::set('is_enabled', true);exit;"

To disable Maintenance mode:

# php artisan tinker <<< "Cms\Models\MaintenanceSetting::set('is_enabled', false);exit;"

Credit: @Tomasz Strojny

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?