Overview:
The Permissions Basic UI is a super basic UI for the Spatie Roles and Permissions Laravel package. Unlike other UIs available for this package, it includes a UI for maintaining Permissions. It is built using Laravel 6 and requires the Spatie Permissions and Laravel Breadcrumbs packages. It is recommended to also use laravel-debugbar or laravel-telescope for development purposes.
Features:
- Basic UI for maintaining Permissions in the Spatie Roles and Permissions Laravel package
- Built using Laravel 6 and compatible with its associated requirements
- Requires the Spatie Permissions and Laravel Breadcrumbs packages
- Optional integration with laravel-debugbar or laravel-telescope for development purposes
Installation:
- Clone the repository.
- Run
composer installorcomposer updateto install the rest of the required code. - Create your database (for MySQL).
- Copy
.env.exampleto.env. - Run
php artisan key:generateto set the application key. - Edit
.envto set your database name and credentials. - Run
php artisan migrateorphp artisan migrate:refreshto create the necessary tables. - Optionally, edit
databases/seeds/UsersTableSeeder.phpto add or change the default users before seeding. - Run
php artisan db:seedto seed the database. - To install the authentication frontend separately (required for Laravel 6), run
composer require laravel/ui --devandnpm install && npm run devto pull in the CSS and JS requirements. - Generate the basic scaffolding using either of the following commands:
php artisan ui bootstrapphp artisan ui vuephp artisan ui react
- Generate the login/registration scaffolding using one of the following commands (choose the one corresponding to the basic scaffolding you generated):
php artisan ui bootstrap --authphp artisan ui vue --authphp artisan ui react --auth
- Login using the default Superuser account: email: super@email.com, password: secret.
Summary:
The Permissions Basic UI is a Laravel package that provides a simple UI for maintaining Permissions in the Spatie Roles and Permissions package. It is built using Laravel 6 and requires the Spatie Permissions and Laravel Breadcrumbs packages. The installation process involves cloning the repository, installing the required packages, configuring the database, and generating the necessary scaffolding. This package is recommended for users who need a basic UI for managing Permissions in the Spatie Roles and Permissions package.