Skip Registration Team if user is an admin?

Hi, Anyone knows how to do it? I try to use a middleware and register it in AuthMiddleware but i got too many redirect error.
1 Reply
Matthew
Matthew2mo ago
If (auth()->isAdmin()) {redirect code;} Obviously have to build your isAdmin() if not there. You could do that within the registration process, rather than middleware, but sounds like you might have a circular routing issue.
Want results from more Discord servers?
Add your server