Support the ongoing development of Laravel.io →
Requests Views

I've been trying to organize my route like this ( Laravel 4.1 )

Route::controller('/', 'HomeController'); the method ( getIndex ) -- first controller Route::controller('/', 'AuthController'); the method ( getLogin, postLogin ) - second controller

but when i access the http::/mywebsite.com/login it always returns an error 'Controller method not found.', it seems that after the first route is found it stops and ignores the next route. Is it possible to make it like L4.0? like when the method in the first controller is not found it will proceed to the next controller.

Thank you.

Last updated 3 years ago.
0

why not use?

Route::controller('/login', 'AuthController');
Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

PQRonnel pqronnel Joined 6 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.