Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Filament Spatie Laravel Permission Plugin

Filament Spatie Laravel Permission Plugin Laravel Package

lloricode/filament-spatie-laravel-permission-plugin

A Filament plugin for Laravel that integrates Spatie's Laravel Permission package, adding admin panel resources to manage roles, permissions, and user assignments. Simplify access control setup with ready-made Filament UI components and policies. It helps developers quickly configure role-based acce...

View on GitHub
Deep Wiki
Context7

Spatie Laravel permission inside of Filament.

Frequently asked questions about Filament Spatie Laravel Permission Plugin
How do I install lloricode/filament-spatie-laravel-permission-plugin?
Install the package with Composer alongside Filament and spatie/laravel-permission. Then register the plugin in your Filament panel provider and follow the README for any publishing or migration steps. Run your migrations before opening the role and permission resources.
Which Laravel and Filament versions does this plugin support?
Supported versions are defined by the package's Composer constraints, so check the repository's composer.json and release notes before installing. Filament major versions can introduce breaking changes, so use a plugin release that matches your Filament version. Also confirm that your Laravel version satisfies the Spatie Laravel Permission requirements.
Do I need to install Spatie Laravel Permission separately?
Yes. This plugin is an integration layer for Spatie's Laravel Permission package, so you need spatie/laravel-permission installed and its migrations run first. The plugin adds Filament resources for managing the roles, permissions, and assignments that Spatie provides.
How do I register the plugin in a Filament panel?
Add the plugin class to the plugin() method of your Filament panel provider. Once registered, the package's role and permission resources become available in that panel. Refer to the README for the exact class name and any optional configuration arguments.
Can I manage roles, permissions, and user role assignments from Filament?
Yes. The plugin provides Filament resources for creating and editing roles and permissions, plus assigning roles to users. This gives administrators a UI for common Spatie permission tasks without building custom Filament resources from scratch.
How do I control who can access the role and permission resources?
Use Laravel authorization policies and Filament's resource authorization features to restrict access to trusted administrators. The plugin is designed to work with policies, but you should verify the default behavior and add gates or policy checks that match your application's security model. Avoid granting broad role-management access to regular users.
Does this plugin support multiple guards or multi-tenancy?
Support depends on the plugin's current configuration options and the underlying Spatie package setup. Multi-guard and multi-tenant permission designs usually require custom configuration and testing. Check the README and issue tracker for the exact guard and tenant capabilities before relying on it.
How can I customize the role and permission forms or tables?
You can customize the Filament resources through standard Filament resource extension and configuration patterns. Check whether the package publishes views, configuration, or resource classes that you can override. For deeper changes, extend the provided resources or create your own while keeping the Spatie models intact.
Is this plugin suitable for production use?
It can be suitable if the release is compatible with your Laravel and Filament versions and your authorization rules are configured correctly. Review the repository activity, test the admin flows in staging, and seed the initial roles and permissions carefully. Also consider permission caching behavior in Spatie Laravel Permission when deploying changes.
What alternatives exist for managing Spatie permissions in Filament?
Alternatives include Filament Shield, building custom Filament resources around Spatie models, or using a different permission-management plugin. This package is a focused integration that adds ready-made resources and policies for roles, permissions, and user assignments. Compare feature sets, maintenance activity, and version compatibility before choosing.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections