Laravel : add additional upload file from public folder
my system can upload files and keep it in the public folder, but what i need is i can upload more images from the same folder without removing the old images
I'd personally use DropZoneJS to upload multiple files and use AmazonS3 or something for the storage.
But to get around your issue, what about changing
$filename = 'PIBI-'.$slug.'-'.$count.'.'.$extension; to something like $filename = 'PIBI-'.$slug.'-'.time().'.'.$extension; that way it would be unique and not remove old images.
So basically you have some naming convention like 'PIBI-'.$slug.'-'.$count.'.'.$extension, based on this you could scan directory and get last count as offset for your new files.