rennokki/guardian
Guardian is a Laravel package for managing roles and permissions. Define abilities, attach them to roles or users, and check access in routes, controllers, middleware, and Blade views through a clean, expressive API that keeps authorization logic simple, readable, and centralized.
Guardian is a lightweight Laravel package that simplifies authorization by letting you attach abilities directly to your Eloquent models and check them through Laravel's native Gate API. Instead of scattering permission logic across policies, you can grant, revoke, and verify abilities with an expressive, chainable syntax.
can, cannot, and Gate methodsHow can I help you explore Laravel packages today?