Courses

Filament 3 From Scratch: Practical Course

First CRUD Menu: Product Resource

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Generating Filament Resource from Model
- Configuring table columns and form fields
- Managing form redirects
- Customizing delete functionality

Video Version of the Lesson

[Only for premium members]

Link to the repository

[Only for premium members]

Text Version of the Lesson

Let's create a menu item and a table/form to manage products.


Generate Filament Resource

Every menu item in Filament is called a Resource, a visual representation of the Eloquent Model. Imagine we have this simple Model with two fields:

app/Models/Product.php:

class Product extends Model
{
use HasFactory;
 
protected $fillable = ['name', 'price'];
}

Then we generate a Filament Resource for this model:

php artisan make:filament-resource Product

It generates a folder app/Filament/Resources/ProductResource with these...

The full lesson is only for Premium Members.
Want to access all 24 video+text lessons of this course? (2 h 01 min)

You also get:

  • 83 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord