Support the ongoing development of Laravel.io →
posted 1 year ago
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

miguel marquezmiguel Joined 31 Dec 2022

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.

© 2024 Laravel.io - All rights reserved.