To put Laravel application in maintenance mode you can use the Artisan command-line tool. Here’s how to do it:

Enabling Maintenance Mode
1. Open your terminal.
2. Navigate to your Laravel project directory.
3. Run the following command:

php artisan down

This command will put your application into maintenance mode.

Customizing the Maintenance mode message
You can also specify a message to be displayed on the maintenance page by passing the --message option to the down command. For example:

php artisan down --message="We'll be back soon!"

Allowing specific IP Addresses
If you want to access the application while it’s in maintenance mode , you can allow specific IP addresses:

php artisan down --allow=123.456.789.000

Disabling Maintenance Mode
To bring your application back online, run:

php artisan up

Enable Maintenance Mode: php artisan down
Customize Message:
php artisan down --message="Custom Message"
Allow IP: php artisan down --allow=YOUR_IP
Disable Maintenance Mode: php artisan up
This is how you can effectively manage maintenance mode in a Laravel application.