get image extension in laravel code example
Example 1: file original extensions laravel
$extension = $file->getClientOriginalExtension();
Example 2: laravel get image extension
$extension = pathinfo(storage_path('/uploads/my_image.jpg'), PATHINFO_EXTENSION);
dd($extension);