- What does oscillas/novaspatiepermissions do?
- It is a Laravel Nova integration for Spatie's laravel-permission package. It lets you manage roles and permissions, assign them to users, and control access directly from the Nova admin panel. It is aimed at developers who want permission administration inside Nova instead of building custom screens.
- How do I install oscillas/novaspatiepermissions?
- Install it with Composer using composer require oscillas/novaspatiepermissions. You also need a Laravel app with Nova and Spatie's laravel-permission package installed and configured. After installing, follow the package README for any required service provider or Nova resource registration steps.
- Does this package require spatie/laravel-permission?
- Yes. The package is described as a Laravel Nova integration for Spatie's Permission package, so Spatie's laravel-permission is the underlying role and permission system. You should install and configure Spatie's package before using this Nova integration. The Nova package provides the admin UI rather than replacing Spatie's authorization backend.
- Which Laravel and Nova versions are supported?
- The provided context does not list exact Laravel or Nova version constraints. Check the package composer.json and README on GitHub for the supported illuminate and nova version requirements. Because Nova major versions have breaking changes, verify compatibility with your installed Nova release before adopting it.
- How do I manage roles and permissions in Laravel Nova with this package?
- It gives you Nova admin screens for managing roles and permissions and assigning them to users. The exact resource names and navigation labels depend on the package configuration. You use the Nova panel to create roles, attach permissions, and connect them to user records.
- Can I assign roles and permissions to users from Nova?
- Yes. The package description says it lets you assign roles and permissions to users directly from the Nova admin panel. This is useful for admin-driven user administration without writing custom CRUD screens. The available fields and actions depend on the package Nova resources and configuration.
- Does it support Spatie permission teams or multi-tenancy?
- The provided context does not explicitly mention team or multi-tenancy support. Spatie's laravel-permission has optional teams features, and any Nova UI must account for team scoping and team foreign keys. Check the package README and issues before relying on it in a multi-tenant setup.
- Is oscillas/novaspatiepermissions suitable for production?
- It is intended for administering roles and permissions in Laravel Nova, which is commonly used in production admin panels. Before using it in production, review its repository activity, release history, and compatibility with your Laravel and Nova versions. Also test permission changes in staging because role and permission errors can affect access control.
- What are alternatives to this package for managing Spatie permissions in Nova?
- Alternatives include building custom Nova resources for Spatie roles and permissions or using another Nova permission-management package. You can also manage roles and permissions with Spatie's Artisan commands or seeders and avoid a Nova UI. The best choice depends on whether you need admin-only UI, team support, and long-term maintenance.
- How do I test or troubleshoot this Nova permission package?
- Install it in a local Laravel app with Nova and Spatie's laravel-permission, then verify roles, permissions, and user assignments in the Nova UI. If resources do not appear, check Nova resource registration, authorization policies, and configuration. Consult the GitHub README and issue tracker for setup details specific to your Nova version.