How to dynamically change the FileUpload directory field ?
I need to store the documents in subfolder with the user name in the Storage for example:
storage/public/Noah
storage/public/James
storage/public/Sophia
FileUpload::make('name_file')->disk('public')->directory('username')
I have not been able to do it
2 Replies
I suppose you can just do this:
thanks