Hey everyone!
I am having a bit of a headache trying to figure out middleware in Laravel and want help. I have got a basic setup where I am trying to restrict access to certain routes based on user roles but for some reason, my middleware isn’t working as expected.
I have defined the middleware in Kernel.php
and added it to the route but users can still access restricted routes. Is there something I might be missing? I am using the default auth
middleware but maybe I need to set up a custom one for role-based access.
Also, if anyone has experience integrating Laravel with third-party authentication services,I want to hear about it. I am going through Okta Training and trying to figure out how to properly link Okta’s SSO with my Laravel app.
Also i have check this Using Laravel Mix in a WordPress Theme still need advice. I appreciate it if someone could point me in right direction. I have been searching through the docs but I think I am just missing a small detail.
Thank you…