I have a Laravel application that is live where initially, all images are encoded into base64 strings and are stored normally on the database (I mean the encoded string), but right-now, I am encountering some speed issue, so in an attempt to optimize my application, I decided to converting all my base64 encoded strings that are stored in the database into a normal (png or jpeg) file in the Laravel storage and only store the file path to the database.
So my challenge in getting this to play is that I can really get to write a script that loops through all of these records (as they are over 1000 rows as of today) and perform that operation for them all.