1. Go to this page and download the library: Download jenky/laravel-plupload library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
return Plupload::file('file', function($file) {
// Store the uploaded file using storage disk
$path = Storage::disk('local')->putFile('photos', $file);
// Save the record to the db
$photo = App\Photo::create([
'name' => $file->getClientOriginalName(),
'type' => 'image',
// ...
]);
// This will be