Requirements
Filament requires the following to run:
- PHP 8.1+
- Laravel v10.0+
- Livewire v3.0+
1. Menginstall Filament di Laravel
composer require filament/filament
2. Membuat Panel
php artisan filament:install --panels
Membuat username
php artisan make:filament-user
3. Publish Konfigurasi
php artisan vendor:publish --tag=filament-config
4. Membuat Resource
php artisan make:filament-resource Customer
php artisan make:filament-resource Customer --simple
php artisan make:filament-resource Customer --generate
php artisan make:filament-resource Customer --soft-deletes
php artisan make:filament-resource Customer --view
Membuat widget di resource
php artisan make:filament-widget CustomerOverview --resource=CustomerResource
Membuat Relasi
php artisan make:filament-relation-manager CategoryResource posts title
5. Membuat Page
php artisan make:filament-page Settings
php artisan make:filament-page SortUsers --resource=UserResource --type=custom
6. Membuat Widget
php artisan make:filament-widget BlogPostsOverview
php artisan make:filament-widget StatsOverview --stats-overview
php artisan make:filament-widget BlogPostsChart --chart
php artisan make:filament-widget LatestOrders --table