Hello, I'm new to the world of October cms.
For a project, I have to change the public address and the storage path with the following. /storage/app/uploads/attachment_id/real_file_name.jpg. Something like the media folder but with 'sort_order' because I need this field. I do not know from where to get attachment_id so that I can use it in the storage path. It is in
protected $hidden = ['attachment_type', 'attachment_id', 'is_public'];
I suppose I have to use update method of plugin model to move the files to /storage/app/uploads/attachment_id .
How to do it ?
Last updated