abdul/laravel-role-permission
Laravel package for simple role-based access control. Generates permissions from your routes, lets you assign them to roles via an admin panel, and protects routes with the auth.role middleware. Includes migrations and an artisan command to register permissions.
published_at > today")—consider spatie/laravel-permission or entrust.@can('edit-post')) over route-level restrictions.For Executives: "This package lets us control user access to features dynamically—without writing custom code for every permission rule. For example, we can enable/disable the ‘Export Data’ button in our admin dashboard via a simple database update, saving dev time and making it easier to adjust permissions as we scale. It’s a lightweight, Laravel-native solution that reduces security risks from hardcoded access checks while keeping costs low (MIT license, no vendor lock-in)."
For Engineering: *"The package provides a clean way to map Laravel routes to roles/permissions stored in the database, avoiding the spaghetti of middleware or policy classes. Key benefits:
/admin/users via a role_permission table (e.g., role_id=2, permission='view_users').For Security/Compliance: "Centralizing permissions in the database (rather than code) makes audits easier—we can track which roles have access to sensitive routes and update them via a single interface. Pair this with Laravel’s logging middleware to create an immutable trail of access attempts, which aligns with GDPR/ISO requirements."
How can I help you explore Laravel packages today?