Description
Elegant, framework-agnostic approach to managing roles and abilities for any app using Eloquent models
Once installed, you can simply tell the bouncer what you want to allow at the gate:
// Give a user the ability to create postsBouncer::allow($user)->to('create', Post::class); // Alternatively, do it through a roleBouncer::allow('admin')->to('create', Post::class);Bouncer::assign('admin')->to($user); // You can also grant an ability only to a specific modelBouncer::allow($user)->to('edit', $post);
Recent Courses on Laravel Daily
AI Agents/IDEs for Laravel: May 2026 (Claude Code, Codex, OpenCode, etc)
7 lessons
52 min
Laravel 13 Eloquent: Expert Level
41 lessons
1 h 34 min
How to Structure Laravel 13 Projects
16 lessons
1 h 32 min read