Call to a member function getClientOriginalExtension() on string this error come when i run my code
public function store(Request $request){
$file_ex=$request -> photo -> getClientOriginalExtension();
$file_name = $file_ex.time();
$path ='/images/users';
$request -> photo ->move($path, $file_name);
where the problem
file uploade , find out why this not working
2
Answers
Please, try like this,
first run this command to generate symbolic link
then in controller function
above code will save your file in
storage/app/public/documents
locationand using symbolic link we can access this file here
public/storage/documents