ConnorHowell
Multiple resource
Just to add, if it's a singular relationship (HasOne, BelongsTo, MorphOne) you can pass ->relationship() to the Fieldset form component and fields within it would be saved to the relationship.
Otherwise yeah a repeater is what you're after
6 replies
How to make a URL column?
You can use the
->url()
method available on TextColumn to give it the url https://filamentphp.com/docs/3.x/tables/columns/getting-started#opening-urls6 replies
A calculated column in the table
You should either use the sortable method to customise the way it performs the query, or you should consider using a virtual column on the table https://filamentphp.com/docs/3.x/tables/columns/getting-started#sorting
3 replies
Uploading new image to a prefilled spatie media file upload not working in custom page with forms
Could you share the code you're using for the form? It sounds like it's not setup to allow multiple files? https://filamentphp.com/docs/3.x/forms/fields/file-upload#uploading-multiple-files
3 replies
How to add code into main Head in all pages in Filamentphp?
There's 2 ways, you can either register a javascript file on the panel: https://filamentphp.com/docs/3.x/panels/configuration#registering-assets-for-a-panel
Or you can register a render hook https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks, you'd want PanelsRenderHook::HEAD_END or PanelsRenderHook::HEAD_START
3 replies