Filament + Jetstream + Shild
Install Laravel
install laravel
laravel new laravel-filament
pilih no starter kit, pest, mysql, migration sampai selesai, pindah direktori
cd laravel-filament
jalankan npm install dan build
npm install && npm run build
Install Filament
install filament
composer require filament/filament:"^3.2" -W
Install Plugin Filament Jetsream
download plugin filament jetstream
composer require stephenjude/filament-jetstream
install plugin filament jetstream team api
php artisan filament:jetstream:install --teams --api
Install Plugin Filament Shield
download plugin filament shield
composer require bezhansalleh/filament-shield
tambahkan
use Spatie\Permission\Traits\HasRoles;
dan use HasRoles; di model user
publish filament shield config
php artisan vendor:publish --tag="filament-shield-config"
shield setup shield
php artisan shield:setup --tenant=App\\Models\\Team --fresh
shield install app
php artisan shield:install app --tenant --generate-relationships
shield generate
php artisan shield:generate --all
Register User
jalankan composer run dev dan register user baru di panel register
Generate Super Admin
generate super_admin
php artisan shield:super_adminsuper-admin --user=1 --panel=app --tenant=1
generate seeder
php artisan shield:seeder
running seeder
php artisan db:seed
running composer dev
composer run dev