Wint
Wint
FFilament
Created by Wint on 2/25/2024 in #❓┊help
How to reuse a page (multiple navigation items with different data)
Hi, I want to add a page multiple times, with different data. Is this possible? All the title, navigation item name... variables are static. So I have trouble reusing it.
4 replies
FFilament
Created by Wint on 5/10/2023 in #❓┊help
How to optimize a uploading image
I'm trying to optimize the image while uploading using spatie/image-optimizer but don't how to do this, can you help me out. - I see we can add manipulations when uploading images but couldn't figure out what string should be passed into. - Or should I using a middleware? how should I using a middleware with file upload? Or which function should I use to hook into the upload process?
3 replies
FFilament
Created by Wint on 4/24/2023 in #❓┊help
Image viewer in form
Hi, do we have any simple component for image preview inside a form? Ideally it can show a modal for the image when clicked. The preview in FileUpload is kind of inconvenient in my case. If I must build a new component, do you have any suggestion for a plugin/Laravel package, that have a simple image modal. Thank you very much.
3 replies
FFilament
Created by Wint on 4/21/2023 in #❓┊help
How can I know which was changes on a Select field using relationship()?
My edit form inside the resource is simple, using the relationship() function for a BelongsToMany relationship Forms\Components\MultiSelect::make('handle_departments') ->relationship('handle_departments', 'name') I'm trying to create a history record after user made changes on the relationship, but couldn't get the information about the changes. I looked into the EditRecord's lifecycle and seems it's can only be retrieved in beforeValidate hook So, how can I know the old values and new values of this relationship in this hook? I'm thinking about creating a hidden field to get the values, do you have any other suggestion?
4 replies