Get Image File Extension when storing image using storeAs
Hi everyone. I'm stuck here. I am uploading image to storage folder and saving the image path+filename to database. I want the filename to have the image extension but I can't seem to get it. I have used getClientOriginalExtension() but it gave an error.
Please help me out. Thanks
Here is my code: