Perintah dasar Laravel Filament v3



Requirements

Filament requires the following to run:

  1. PHP 8.1+
  2. Laravel v10.0+
  3. 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

Melakukan Optimasi Filament pada mode production

php artisan filament:optimize

Membersihkan optimasi 

php artisan filament:optimize-clear

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


Posting Komentar

Lebih baru Lebih lama