set default file laravel7 if no file uplaod code example Example: laravel store file $path = $request->file('avatar')->store( 'avatars', 'public' );