You can use a middleware to do this. So you block users based on their role or a certain status for example.
Sep 26, 2019
5
Level 2
Authenticate pages using session instead of API?
My Canvas website has different user accounts. I'd like some webpages to be accessible only to accounts with certain qualifiers (e.g only Admin accounts can see page X). What would be the best way to go about this in Laravel?
Level 7
I think what @bobbybouwmann is trying to say is that you can create a custom middleware to do this. https://laravel.com/docs/5.8/middleware. look at the CheckAge example in the documentation
1 like
Please or to participate in this conversation.