Home > OS >  Laravel Class "Route" not found Error After config:clear
Laravel Class "Route" not found Error After config:clear

Time:08-24

I made php artisan config:clear. After that I write and run php artisan serve and I got

In app.php line 5: Class "Route" not found
Class "Route" not found

error. What should I do?

Thanks for your answers. :)

CodePudding user response:

Check your app.php file in 'aliases' array this code exists or not

'Route'=> "Illuminate\Support\Facades\Route",

CodePudding user response:

Try this code

php artisan config:cache
  • Related