I'm trying to optimize the image while uploading using spatie/image-optimizer but don't how to do this, can you help me out. - I see we can add
manipulations
manipulations
when uploading images but couldn't figure out what string should be passed into. - Or should I using a middleware? how should I using a middleware with file upload? Or which function should I use to hook into the upload process?