Are you set on storing your image in the database?
If not I'd recommend the spatie media library:
https://spatie.be/docs/laravel-medialibrary/v11/introduction
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Are you set on storing your image in the database?
If not I'd recommend the spatie media library:
https://spatie.be/docs/laravel-medialibrary/v11/introduction
I'm not, but shouldn't this be an easy task ootb in Laravel?
I guess it should be, but I've never tried storing files in the DB.
It's rather easy upload files to the file system with the Storage Facades, but that doens't have an build in way to associate the files with models. That's where the spatie media library comes in.