I send file from my html form and dump my file in controller. Dump result return correct result with file name.
dump($request->file);
But if I check for true or false then var_dump() return false.
var_dump($request->hasFile('file'));

That's because $request->file is a string and not instance of Illuminate\Http\UploadedFile.
You should use ->hasFile() only with files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With