Environment

优质
小牛编辑
125浏览
2023-12-01
$environment = app()->environment();
$environment = App::environment();
$environment = $app->environment();
// 判断当环境是否为 local
if ($app->environment('local')){}
// 判断当环境是否为 local 或 staging...
if ($app->environment('local', 'staging')){}