file original extensions laravel
snippet in php

php get file extension

user7482

$path ="/some/path/to/myfilename.html"; 
$ext = pathinfo($path, PATHINFO_EXTENSION);//ext is "html"

file original extensions laravel

user9331

$extension = $file->getClientOriginalExtension();