Multi-panels different image paths

Hi, currently i'm using filamentphp v3 with multi-panels, and i want to store images in a specific directory for each panel e.g. admin => '/images/admin/JASKD23908HR890ADYHA0D12.png' , user => '/images/user/ASDK2309J9023FH23890HF3890.png'
3 Replies
samsasba
samsasbaOP14mo ago
bump bump
cheesegrits
cheesegrits14mo ago
Are you talking about FileUpload fields?
awcodes
awcodes14mo ago
You’d need to define the directory on the FileUpload field. ->directory() should accept a closure where you can get the current panel and return the appropriate directory with a match statement.
Want results from more Discord servers?
Add your server