gmgarrison
Widget error - unable to find component
Oooh. Interesting. I added it back to the panel with ->widgets() and it was there twice so I removed it from the Dashboard's getHeaderWidgets() and now I'm back to what I want. So even though I've got a Dashboard Page, I should just use the AdminPanelProvider to configure Widgets that I want on the Dashboard because they have to be in the Provider regardless but they don't need to be in the getHeaderWidgets() in order to be displayed. Thanks a lot!!!!
6 replies
How do I persist FileUpload's result?
There's no exposed place in the Filmament lifecycle where I could write custom behavior while still having the $_FILES object (totally great if there's a Filament wrapper around it) still accessible?
13 replies
How do I persist FileUpload's result?
I thought I did have a separate table for the media - it's File. But it sounds like what you're telling me is that there's no mechanism for custom behavior in the resource form saving/upload process?
13 replies
How do I persist FileUpload's result?
(Follow up question which I realize is more ocmplicated... if I have a generic File table that stores any uploaded file and a different Resource table that stores every resource, only some of which are uploaded files, how do I set up the form in Resource to have a FileUpload input that creates a File and then stores the file_id in Resource?)
13 replies
How do I persist FileUpload's result?
I guess I understand that the fields created in the form correspond to columns in the model. But there are attributes for the file that are derived from the actual upload - original filename, size, path. How can they be persisted?
13 replies
Set initial value for hidden field
I do understand the vulnerability from the front-end. This particular form is on the admin side of our product and the user would be able to change it regardless, just in a different place. I just haven't learned enough Filament yet to know how to set it in the backend but when I do, I'll probably move it back there anyways.
12 replies