Home  >  Article  >  Backend Development  >  laravel code maintenance, use php artisan to use the application under maintenance_PHP tutorial

laravel code maintenance, use php artisan to use the application under maintenance_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:26:52885browse

When the application is under maintenance, we can temporarily close the program. The specific use is to use
php artisan down
artisan is a program in the laravel root directory. When this command is executed When the maintenance is completed, use php artisan up to enable the application
App::down(function()
{
return Response::make("Be right back!", 503);
});

You can also use php artisan to generate the key of 32 applications. In /app/config/app.php, the

command is: php artisan key:generate
If the key has been set, clear it first. That’s it

http://www.bkjia.com/PHPjc/821271.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/821271.htmlTechArticleWhen the application is under maintenance, we can temporarily close the program. The specific use is to use php artisan down artisan It is a program in the root directory of laravel. When this command is executed...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn