We have to call Facades in our controller file with this :
use Illuminate\Support\Facades\Storage;

BY Best Interview Question ON 18 Sep 2022

Example

if($request->hasFile(file_name')) {
      $file = Storage::putFile('YOUR FOLDER PATH', $request->file('file_name'));
}

Suggest An Answer