We have to use the following artisan commands to enable/disable maintenance mode in Laravel 5.

Enable maintenance mode

php artisan down

Disable maintenance mode

php artisan up

BY Best Interview Question ON 18 Sep 2022