You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to register a middleware on route level?
I created an Authenticate middleware to do a redirection if no user is logged in and I'd like to register the middleware only on delete method.
The problem is that I only can do it on resource level like below:
Hi,
Is there a way to register a middleware on route level?
I created an Authenticate middleware to do a redirection if no user is logged in and I'd like to register the middleware only on delete method.
The problem is that I only can do it on resource level like below:
Thanks!
The text was updated successfully, but these errors were encountered: