Sentry may be an overkill for your case, but if you think it may come useful in the future and you have time to study it, this could actually be a good opportunity to integrate it.
Otherwise you could just add some sort of role
field to users
table and check it in a custom middleware assigned to controllers/routes you want to restrict access to.
Ok, thank you. There is online an example in which I can see how to extend a model and use Eloquent?
Yes, I'm learning with this series, and I have see the first half of lessons, but I've not found anything about.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community