Exclude a page from global panel middleware
Hi all. Is there a way of excluding a page from the global panel middleware? Use case: I need to prevent access to a panel until a user has verified their billing information.
I've added my
RedirectIfBillingNotVerified
middleware to ->authMiddleware()
and it works, but the page with the billing verification form needs to be excluded. I could create a separate (non-panel) page but I'd prefer it to be a panel page so it inherits the panel styling. Is there a simple way of doing this?2 Replies
Solution
not sure if
withoutRouteMiddleware
will helpThat's exactly what I was looking for π Thanks!