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

veptune's avatar

Breeze store method from RegisteredUserController not call???

Hello all,

So this is very weird.

I have laravel 11 / Breeze.

In the breeze registration form, the post action is :

On routes/auth.php I have :

Route::post('register', [RegisteredUserController::class, 'store']);

But when I update the store method in this controller, nothing happens. Even if I add an exit() the registration process still works.

Even if I rename the RegisteredUserController.php it works...

Any clue? (yes, I did php artisan cache:clear)

Thanks

0 likes
5 replies
tykus's avatar

Are you sure you are editing the file in the same project as you are viewing in the browser?

veptune's avatar

OK, so the answer is that in my web.php I had :

require DIR.'/auth.php';

Auth::routes();

I had to remove Auth::routes(); It does not also add default route (like lhe previous require did) but seems also use default controller when it can t find the auth controller located in app/http/controllers/auth...

It is strange because it was what was written after installing Breeze.

tykus's avatar

I don't get it... did you install Breeze in a pre-existing project?

JussiMannisto's avatar

You had two definitions for the same POST route on /register. The route that was registered last overwrote the earlier route. That's all that happened.

Please or to participate in this conversation.