Laravel Get Extension от URL

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