Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

6ber6ou's avatar

routesAreScanned() Error

Hi all.

I have started a Laravel 5.0 project. Locally everthing works good, but once I deploy my site on Forge I've got the error :

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR) Call to undefined method Illuminate\Foundation\Application::routesAreScanned()

Please help me.

0 likes
5 replies
JeffreyWay's avatar
Level 59

You need to update composer.

(And be careful about deploying a Laravel 5 app. It's not even in beta just yet, really.)

abhijitghogre's avatar

Strangely, I started facing the same problem. And composer self-update isn't solving mine! Jeff, please help.

6ber6ou's avatar

I ran composer self-update via the deploy script in Forge and I still have the same issue, I just decide to wait the official release of L5 before deploying my site on Forge. Hope this problem will be solve.

Please or to participate in this conversation.