Logout Middleware
I had added a new middleware to my AdminPanelProvider.
It redirects a user to their profile page if their profile is not complete.
I have removed the Middleware from my EditProfile page.
But it is preventing these users from logging out (they just get re-redirected to EditProfile). What is the best way to remove the middleware from the logout route?
Solution:Jump to solution
In your middleware handle function do it something like this
```
if ( $request->routeIs('filament.admin.auth.logout') )
return $next($request);
}...
3 Replies