Kinda like their names, a gate keeps someone out but a policy is kinda like the instructions telling gate who is allowed and not allowed.
Nov 7, 2016
4
Level 2
What is the difference between gates and policies?
i didn't quite understand the difference between gates and policies from the documentation, and i couldn't find any screencast about them.
can anyone please explain the difference, and how can i use it to check for users roles like admin, superadmin, i know about packages like entrust, but i'am looking for pure laravel way of doing it.
Please or to participate in this conversation.