call to a member function getclientoriginalextension() on null in laravel 8 code example
Example 1: getClientOriginalExtension laravel
$extension = Input::file('photo')->getClientOriginalExtension();
Example 2: getClientOriginalExtension laravel
$name = Input::file('photo')->getClientOriginalName();