Custom Component Within Resource.
I've created a new resource with basic add, edit, and delete functionality. My question is: Is it possible to include a custom component within the resource, such as a custom form section or field?
14 Replies
@Nicole absolutely, just add them in the resources form.
You mean that if I have this resource, I can simple insert any custom created component with custom function there?
Within the schema yes
you can also use the Livewire component to render livewire components too.
You can also insert widgets for edit/view/create pages too. It's all in the docs
Is it possible to add a button to the middle of the create form that, when clicked, sends a request to an external API and fills other form fields based on the response?
The idea is like this

Yes it is possible, that's an action button really. Let me see if I can find a guide
This is what I found so maybe you have other guides https://laraveldaily.com/post/filament-add-custom-action-button-inside-form
Yes that's the one I was looking for
Oh, got it. Thanks!
Maybe you have idea for this one as well? https://discord.com/channels/883083792112300104/1364866419036262453
I just need a map to show the location in a map so lightweight map will work.
Based on latitude and longitude
Just use any map field, and then set it as ->disabled() so it just shows the location.
Is there a map field?
I can't find it in docs
Filament
Plugins - Filament
Community made packages for Filament projects, which give you access to awesome new features.
Plenty above
Thank you so much toeknee