PHP Fatal error: Class 'Route' not found on Laravel 5.4

jerauf posted 10 months ago

I've suddenly started getting this error:

 PHP Fatal error: Class 'Route' not found

The error message lists all of the paths to files that I've got routes. My routes are broken up over multiple files using this:

foreach (File::allFiles(__DIR__.'/Forwards') as $partial) {
    require_once $partial->getPathname();

...and others like it to reference other files.

I have no idea what this means. All of the routes in the other files work.

jerauf replied 10 months ago

Anyone know?

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us