Closed lancepioch closed 3 years ago
For lumen error Config class not found. bootstrap/app.php line
if (class_exists('\Illuminate\Support\Facades\Config') && !class_exists('Config')) {
class_alias('\Illuminate\Support\Facades\Config', 'Config');
}
I'm using Lumen 5.8 and this call fails with Config class not found. However, using \Config elsewhere works and importing the facade works too.
Regardless, this is a better way to resolve the config and is already used elsewhere in the app.
Thanks!