gringomutt
gringomutt
FFilament
Created by gringomutt on 6/14/2024 in #❓┊help
Filament & Spatie Media Library not Showing Img on edit.
I have a resource that works perfectly in development with spatie media library img upload. On a dev server I can upload images and process them, but when i go back to edit the record i get the img file name on top but i cant see the img. If i drill down to the html i find the URL for the correct img. If i click on the link o go to the img. I have scratched my head over this and i cant seem to find why its not displaying within the resource Edit page but the url is there and accessible.
9 replies
FFilament
Created by gringomutt on 6/7/2024 in #❓┊help
CreatModel edit getFormActions based on a condition.
I need to run specific checks on different CreateModel's form actions. All i need to do is return "create" , "save and create another" and cancel depending on the condition. Now getCreateFormAction() is available but i cant seem to find other options for "cancel" and "create" Is this built in or do i need to create it from scratch? protected function getFormActions(): array { $user = auth()->user()->phone;
if ($user !== null) { return [ $this->xxxCancel(); ]; } return [ $this->getCreateFormAction(), $this->xxxCreateAndCreateOther(), $this->xxxCancel(); ]; }
3 replies