Turn on maintenance mode in laravel

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Turn on maintenance mode in laravel

文章 yehlu »

http://tutsnare.com/turn-on-maintenance ... n-laravel/

Turn on maintenance mode in laravel using artisan commands

Turn on maintenance mode in laravel

If you are working with laravel. There is all hard task you can do simply. That’s why i like laravel. A simple example of it’s simplicity, If you are working on your live site and want to turn on maintenance mode in laravel, You just need a command run and done. This all handle via php artisan commands. You can learn about artisan commands here. Let’s see how to turn on maintenance mode in laravel.

artisan-down-up

Turn on maintenance mode in laravel

Just grab you application path where laravel application installed and simply run below command.

代碼: 選擇全部

php artisan down
Turn off maintenance mode in laravel

Just grab you application path where laravel application installed and simply run below command.

代碼: 選擇全部

php artisan up
Maintenance Mode

In maintenance mode, a custom view will be displayed for all requests into your application. It’s a check is included in the default middleware stack for your application. If the application is in maintenance mode, an HttpException will be thrown with a status code of 503. For more about laravel maintenance mode follow Official Docs.

Maintenance Mode Response Template

Default maintenance mode responses template is located in

resources/views/errors/503.blade.php

. You can change and customize your view with same file name.
回覆文章

回到「laravel」