Answers for "laravel 7 env bool"

PHP
2

get env app url laravel

env('APP_URL')
Posted by: Guest on November-28-2020
0

laravel check environment hlper

if (App::environment('local')) {
    // The environment is local
}

if (App::environment(['local', 'staging'])) {
    // The environment is either local OR staging...
}
Posted by: Guest on January-26-2021

Browse Popular Code Answers by Language