laravel get extension from url

54

laravel get extension from url -

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

Comments

Submit
0 Comments