Home > Backend Development > PHP Tutorial > 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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 10:26:52
Original
957 people have browsed it

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 of this Website
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
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template