📜  laravel 获取环境变量 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:04.185000             🧑  作者: Mango

代码示例4
if (App::environment('local')) {
    // The environment is local
}

if (App::environment(['local', 'staging'])) {
    // The environment is either local OR staging...
}