Support the ongoing development of →
posted 1 year ago

Depends on what auth you are using, but the principle is the same: go to app>Http>Controllers>Auth, inside find controller for registering user (example for breeze it would be RegisteredUserController) and put the following code inside the class:

public function __construct() { $this->middleware('auth'); }

Again, this is one of possibilities of doing it, but I think it will work in your case.


Sign in to participate in this thread!


Your banner here too?

miguel marquezmiguel Joined 31 Dec 2022


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

Your logo here?

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

© 2024 - All rights reserved.