Laravel - artisan down / Maintenance Mode except own IP

后端 未结 6 1842
Happy的楠姐
Happy的楠姐 2021-02-14 16:38

Currently i am using Laravel5. My question is if if i use the Maintenance mode with

php artisan down

how can say \"the application is down for

6条回答
  •  甜味超标
    2021-02-14 17:21

    For Laravel 8:

    Even while in maintenance mode, you may use the secret option to specify a maintenance mode bypass token:

    php artisan down --secret="1630542a-246b-4b66-afa1-dd72a4c43515"
    

    After placing the application in maintenance mode, you may navigate to the application URL matching this token and Laravel will issue a maintenance mode bypass cookie to your browser:

    https://example.com/1630542a-246b-4b66-afa1-dd72a4c43515

    When accessing this hidden route, you will then be redirected to the / route of the application. Once the cookie has been issued to your browser, you will be able to browse the application normally as if it was not in maintenance mode.

    There some new nice features with maintenance mode in Laravel 8. Read it here.

提交回复
热议问题