gmgarrison
gmgarrison
FFilament
Created by gmgarrison on 4/10/2024 in #❓┊help
Can I add a custom Livewire component to the Dashboard?
Okay, great - easy enough!
6 replies
FFilament
Created by gmgarrison on 4/9/2024 in #❓┊help
Custom Livewire widget giving "getSort doesn't exist" error
The problem was I was adding this in the ->widgets([]) of the Admin Panel Provider and it's not a widget so it doesn't have the getSort() method.
4 replies
FFilament
Created by gmgarrison on 3/1/2024 in #❓┊help
Custom Field in a form that's display only
THANK YOU!
5 replies
FFilament
Created by gmgarrison on 1/26/2024 in #❓┊help
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
FFilament
Created by gmgarrison on 1/2/2024 in #❓┊help
Placeholder with record data and link
Got it - thank you!
5 replies
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
How do I persist FileUpload's result?
Hmmm... interesting!! Thank you!
13 replies
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
How do I persist FileUpload's result?
I'll admit I haven't played around with the upload-related plugins yet. I'll spend some time with those today.
13 replies
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
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
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
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
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
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
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
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
FFilament
Created by gmgarrison on 12/16/2023 in #❓┊help
How do I persist FileUpload's result?
Is there documentation for the fields it saves and what column names it expects?
13 replies
FFilament
Created by gmgarrison on 12/11/2023 in #❓┊help
Arbitrary values for table column
If you've got any advice, how should I understand "state" in that method name? Is it the same as the value of the cell in the table?
9 replies
FFilament
Created by gmgarrison on 12/11/2023 in #❓┊help
Arbitrary values for table column
I guess the answer to my broader question is that I can use ->getStateUsing and pass it a resource and use Eloquent with it. Cool.
9 replies
FFilament
Created by gmgarrison on 12/11/2023 in #❓┊help
Arbitrary values for table column
That worked perfectly almost without any changes. Thank you.
9 replies
FFilament
Created by gmgarrison on 12/8/2023 in #❓┊help
Set initial value for hidden field
I will say the documentation is pretty fantastic and then having this Discord that's also searchable is also a huge bonus. They've both been very helpful for me so far.
12 replies
FFilament
Created by gmgarrison on 12/8/2023 in #❓┊help
Set initial value for hidden field
I think that's the only place I'll need it in this instance. That particular field isn't displayed on the edit form b/c it won't need to be changed on this screen. Thanks for chiming in!
12 replies
FFilament
Created by gmgarrison on 12/8/2023 in #❓┊help
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
FFilament
Created by gmgarrison on 12/8/2023 in #❓┊help
Set initial value for hidden field
I just found ->default(). Any reason not to use that?
12 replies