{"repo":"JosephSilber/bouncer","free":true,"listed":false,"github":"https://github.com/JosephSilber/bouncer","clone":"git clone https://github.com/JosephSilber/bouncer.git","description":"Laravel Eloquent roles and abilities.","language":"PHP","stars":3579,"topics":["laravel","authorization","eloquent","php","security","permissions","auth","roles","acl","multitenancy"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Bouncer Bouncer is an elegant, framework-agnostic approach to managing roles and abilities for any app using Eloquent models. Table of Contents Click to expand - Introduction - Installation - Installing Bouncer in a Laravel app - Installing Bouncer in a non-Laravel app - Enabling cache - Usage - Creating roles and abilities - Assigning roles to a user - Giving a user an ability directly - Restricting an ability to a model - Allowing a user or role to \"own\" a model - Retracting a role from a user - Removing an ability - Forbidding an ability - Unforbidding an ability - Checking a user's roles - Querying users by their roles - Getting all roles for a user - Getting all abilities for a user - Authorizing users - Blade directives - Refreshing the cache - Multi-tenancy - The scope middleware - Customizing Bouncer's scope - Configuration - Cache - Tables - Custom models - User Model - Ownership - FAQ - Where do I set up my app's roles and abilities? - Can I use a different set of roles & abilities for the public & dashboard sections of my site, respectively? - I'm trying to run the migration, but I'm getting a SQL error that the \"specified key was too long\" - I'm trying to run the migration, but I'm getting a SQL error that there is a \"Syntax error or access violation: 1064 ... to use near json not null)\" - Console commands - bouncer:clean - Cheat sheet - Alternative - License Introduction Bouncer is an elegant, framework-agnostic approach to managing roles and abilities for any ap","default_branch":null,"files":null,"tree":[],"storefront":"/r/JosephSilber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JosephSilber/bouncer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}