Answers for "laravel how to check environment in laravel"

PHP
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

Code answers related to "laravel how to check environment in laravel"

Browse Popular Code Answers by Language