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
bump
bump
Are you talking about FileUpload fields?
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.