F
Filament10mo ago
Avriant

Resource that manages only one entry? (HasOne, no table view, /edit and /view routes are the same)

Filament/Livewire newbie. Have built a few simple blogs in Laravel 9/10. Example: A company has a separate form for how many members it has and how many people of different age groups it has. There's no need to have multiple entries for this — only one page with input fields and "save" is enough. Could anyone guide me in the right direction? I Googled it and found this https://filamentphp.com/docs/2.x/admin/resources/custom-pages https://www.youtube.com/watch?v=wpZkFFqRYYI But looking at the result from this guy (I don't speak Indonesian) it seems like it's just another multiple-entry view.
asadeveloper
YouTube
Filament 3 - Custom Page
Hello friends, di video ini kita akan belajar membuat custom Page untuk file form relationnya kita. Terimakasih & Semoga bermanfaat. ------------------------------------------------------------------------- Yang belum subscribe, yuk subscribe... Yang sudah subscribe, THANKS..!! Cari Hosting terbaik, disini saja: https://bit.ly/3LkSFst Ingin ...
2 Replies
Patrick Boivin
Patrick Boivin10mo ago
Filament Daily
YouTube
Filament: Only Edit Form with Custom Page and Livewire
If you want to use a Filament form outside of the Resource, here's one example. Original tutorial. Filament: Edit Only Single Record with Custom Page https://laraveldaily.com/post/filament-edit-only-single-record-custom-page
Avriant
Avriant10mo ago
This is perfect, thank you so much!