laravel get extension from url
snippet in php

laravel get extension from url

user6466

$extension = pathinfo(storage_path('/uploads/my_image.jpg'), PATHINFO_EXTENSION);dd($extension);