It is used all over the world by many Fortune 500 comapnies. There are multiple jobs are available for this. The following are fequently asked intervie questions and ansers. It will help to you to handle the intervier efficiently.
Q. What is Laravel?
Ans. - Laravel is the most popular free open-source MVC(model–view–controller) architecture and Symfony kernel-based PHP framework.
Q. How to put Laravel applications in maintenance mode
Ans. - This makes it easy to "disable" your application while it is updating or when you are performing maintenance. To enable maintenance mode, followings are some useful laravel commands related to maintenance mode:
# enable maintenance mode php artisan down # disable maintenance mode php artisan up # if you want client to refresh # page after specified number of seconds php artisan down --retry=60
Q. How to test app while app under maintenance in laravel?
Ans. - 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"
Once you inform down command with secret provided as an argument you can hit following url to set cookie that will let you bypass maintenance mode on your browser using following url:
https://<your-site-name>/1630542a-246b-4b66-afa1-dd72a4c43515
When accessing this hidden route, you will then be redirected to the / route of the application. You will be able to browse the application normally as if it was not in maintenance mode.
0 comments:
Post a Comment