Video Version of the Lesson
[Only for premium members]
[Only for premium members]
[Only for premium members]
Let's create a menu item and a table/form to manage products.
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...