Laravel file upload is a package that allows to you upload a single file or multiple files simply.
composer require file-upload-package/laravel-file-upload
php artisan vendor:publish --tag=config
Here are a few short examples of what you can do:
$post = new Post();
//...
$post->image = FileUpload::uploadSingle($request->file('image'));
$post->save();
You can add folder path.
$post = new Post();
//...
$post->image = FileUpload::uploadSingle($request->file('iamge'),'posts');
$post->save();
***Dont forget*** run this command.
```bach
php artisan storage:link
$post = new Post();
//...
$post->files = FileUpload::uploadMultiple($request->file('files'));
$post->save();
$fileUpload->oldFileDelete($oldFilePath);