1Five most important commands if your Laravel is not working as expected after
2some modifications in .env or database folder or because of any other modifications.
3Here is full explanation: https://www.youtube.com/watch?v=Q1ynDMC8UGg
4
5php artisan config:clear
6php artisan cache:clear
7composer dump-autoload
8php artisan view:clear
9php artisan route:clear
10
11After clearup, try "echo env('URL_BUILDER')"
1if (App::environment('local')) {
2 // The environment is local
3}
4
5if (App::environment(['local', 'staging'])) {
6 // The environment is either local OR staging...
7}