PHP code example of stianscholtz / s3-direct-uploader
1. Go to this page and download the library: Download stianscholtz/s3-direct-uploader 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/ */
stianscholtz / s3-direct-uploader example snippets
php artisan vendor:publish --provider="Stianscholtz\S3DirectUploader\UploaderServiceProvider" --tag=config
php artisan migrate
Route::upload('/upload', [UploadController::class, 'upload'])->name('file.upload');
Route::match(['get', 'post'], '/upload', [UploadController::class, 'upload'])->name('file.upload');