amtech
amtech
FFilament
Created by amtech on 5/6/2024 in #❓┊help
I want to show an image URL on my FileUpload form when editing the content of the form in filamentph
I am trying to accomplish something like this: // From Database $image = [ 'name' => 'my name', 'image_url' => 'https://image.com/img-2345.png', 'image_path' => 'image-23545-4543.png', ]; This is not working // From mutateFormDataBeforeFill $data['url'] = $image['image_url']; // From filament form FileUpload::make('url') ->image(); This is working // From mutateFormDataBeforeFill $data['path'] = $image['image_path']; // From filament form FileUpload::make('path') ->image(); from my filament i want to show the image_url not the path so i can view the image, I dont want to use the spatie media library for now. it working perfectly on the table but not on the form.
2 replies
FFilament
Created by amtech on 5/4/2024 in #❓┊help
Is there a way to customize in select::make('color) in filament to select colors and show the color
Please guys, is there a way to customize in select::make('color) in filament to select colors and show the exact color or color icon and the color code from the list of options.
7 replies