- Migration: Database migration files for schema definitions.
- Seeders: Seeder files for populating initial data.
- SQL Dump: SQL dump files for database structure and initial data.
- Spatie Permission: Integrated for managing roles and permissions.
- Permission Manager Command: Custom Artisan command for managing permissions.
- Permission & Role Seeder: Seeders to create default roles and permissions.
- Default 'super-admin' role: Seeded with all permissions.
- Admin User: Pre-seeded with the 'super-admin' role.
php artisan app:setup- Sets up the application, including initial migrations and seeding.
php artisan app:refresh- Refreshes the database by running migrations and seeders.
php artisan app:permission:add --name="permission:name"- Adds a permission to the database or file (default: database).
php artisan app:permission:list:file- Lists permissions from the JSON file.
php artisan app:permission:list:db- Lists permissions from the database.
php artisan app:permission:remove --name="permission:name" [--force]- Removes a permission from the database or file (default: database). Use
--forceto remove permissions even if they are assigned to roles.
php artisan app:permission:compare- Compares permissions between the database and the JSON file, showing discrepancies.
php artisan app:permission:sync- Synchronizes permissions between the database and the JSON file, ensuring both are consistent.
- provide selection for which seeder to consider
- create a command that can generate $fillable array from the migrations
- add API platform