VentureCraft / revisionable

Easily create a revision history for any laravel model
http://twitter.com/duellsy
MIT License
2.55k stars 349 forks source link

Revert #112 and follow #113 #390

Closed lancepioch closed 3 years ago

lancepioch commented 3 years ago

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!

dipeshsukhia commented 2 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');
}