Difference between using Livewire vs Resource for Filament Forms?

I have Laravel 11 and just installed Filament to use for my end-user facing website (not admin). I see examples that use both Livewire Component as well as "Resource". What is the difference? Pros/Cons?
6 Replies
krekas
krekas4w ago
resource is in the panel
heat23.
heat23.4w ago
panel meaning? Admin Panel?
krekas
krekas4w ago
yes
LeandroFerreira
Resources are used to build CRUD interfaces for your Eloquent models, in the Admin Panel https://filamentphp.com/use-cases/admin-panel You can also use Filament components in Livewire features such as the Table Builder, Form Builder, Infolist... However, you’ll need to develop the actions yourself.
Filament
Filament - Laravel Admin Panel - Filament
An admin panel built with Laravel and Livewire.
Dennis Koch
Dennis Koch4w ago
Resources are just classes that hold configuration for the admin panel including form and table. If you are working with the Panel and need CRUD functionality go with a Resource. If you just need a single form: Use a Page/Livewire component and add a form
heat23.
heat23.4w ago
Ahh, thanks for the clarification
Want results from more Discord servers?
Add your server
More Posts