Support the ongoing development of Laravel.io →
posted 8 years ago
Views

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.

Last updated 2 years ago.
0

Anyone know?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 2014

Moderators

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

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.