How to put Laravel applications in maintenance mode?

In Laravel, you can put your application into maintenance mode to perform updates or maintenance tasks without disrupting the user experience. Laravel provides an Artisan command to put your application into maintenance mode. Open a terminal and navigate to your project's root directory, then run:

php artisan down

To bring the application back online, use:

php artisan up