$conf ='app_debug';
$isExist= Config::has($conf);
$isExist= $isExist ? (Config::get($conf)) : ($conf."配置项不存在");
return ($isExist);----$conf为真报错
dump($isExist);------正确
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
不能返回布尔值