This package uses the dorpzone wrapped in a Laravel's blade component, provides the functionality to Upload Multiple files. It also allows you to linkthe uploaded files to link with related table.
composer require idea/uploader
After composer command, copy the service provider path and pase in app.php of your application As mentioned, this package is using the Dropzone.js, jQuery must be loaded before dropzone. For this functiontionality, you must include jQuery in your layout File. We are doing this jQuery file sepration, only to prevent JS conflicts. So you must have only One jQuery File throughout the application. Here is some code from layout file<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
@stack('scripts')
You need to use this in your application's blade file, where the action is end point.
php artisan migrate Use Traituse UploadableTrait;
from use Idea\Uploader\UploadableTrait;
In controller action function
$this->upload($request);
It will return the uploaded files Instances.