I have a page and a route "a" that belongs to theme1. I added the Middleware to the Kernel and added a Middleware on this route in web.php and set it to "theme:theme1". Right now the active theme is set to theme2 in config/theme.php but when I go to /a I still see the page, it should not allow you to view the page, that's the whole point of a Middleware. Did I do something wrong?
@RyanSacks I think you misunderstood the theme middleware. Here theme Middleware's responsibility is to set your app theme. It is not going to handle permissions.
I have a page and a route "a" that belongs to theme1. I added the Middleware to the Kernel and added a Middleware on this route in web.php and set it to "theme:theme1". Right now the active theme is set to theme2 in config/theme.php but when I go to /a I still see the page, it should not allow you to view the page, that's the whole point of a Middleware. Did I do something wrong?