PHP code example of leadthread / laravel-upload
1. Go to this page and download the library: Download leadthread/laravel-upload 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/ */
leadthread / laravel-upload example snippets
LeadThread\Upload\Providers\Upload::class
"Upload" => "LeadThread\Upload\Facades\Upload",
function upload(Request $request)
{
$file = $request->file('file');
//Returns an Eloquent Model for the file
$model = Upload::create($file);
}
bash
php artisan vendor:publish --provider="LeadThread\Upload\Providers\Upload"
bash
php artisan migrate