Filament Livestream: Pet Clinic Admin Panel - Schedules

preview_player
Показать описание
Let's build an admin panel for a fictional Pet clinic using Filament v3. In this live session I'll try to demonstrate my process for creating and entire project from start to finish.

Latest Subscriber:   cengiz07242
Subscriber Goal: ||||||||||||||| 66% |||||.......... 3.31K/5K

Start creating Filament Admin Panels today with the Filament Bootcamp

Latest tippers: MilenKo - $10.00, Sean - $5.00, Daniel GAMEL - $1.00, Mwest2020 - $5.00

Join me on Discord

Discord Goal: ||||||||||||||| 72% |||||||........ 217/300
Latest discord member: shojibflamon♯0
Рекомендации по теме
Комментарии
Автор

1:22:14 @shahzadwaris7193 I found out a solution for you question. I posted the code in my discord server in the Tips And Tricks section
But basically, this is how you can format the column


->badge()
->formatStateUsing(fn (Slot $state) => $state->start->format('h:i A') . ' - ' . $state->end->format('h:i A'))

As you can see, by just providing the relationship name to the make() method and then type hinting the Slot model, you can format each of the Slots in the relationship.

Tuto
Автор

Man, watching you debug that last dropdown bug was so satisfying. Good stuff. This way we know how to deep dive with our tooling

AmitErandole
Автор

I can see now that slowly business logic is getting tangled into form components. How would you extract this into patterns like services and actions (or even dispatch jobs) like we normally used to doing as laravel devs? Ideally I would want to just fire off single line actions inside those closures. But I don't want to cross boundaries and send in functions like $get as arguments to a Service or Action. So how would you do this? What would it look like?

AmitErandole
Автор

I'm attempting to set up the edit page as the primary view for a filamentphp resource, specifically for managing page settings. These settings will consist of a single data row, and I want to restrict it to only being editable, with no option to create new rows or delete the existing one. Despite my efforts to find a solution, I haven't been able to. I'm open to any pointers, workarounds, or alternative approaches that could help me achieve this. Thanks for your assistance!

codprez
Автор

i have a questin i post it on the discord, thanks. 🙏

yuliarahma