PHP code example of baspa / laravel-s3-uploader

1. Go to this page and download the library: Download baspa/laravel-s3-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/ */

    

baspa / laravel-s3-uploader example snippets


return [
    'disk' => env('S3_UPLOADER_DISK', 's3'),
];
bash
php artisan s3:upload storage/app/exports backups/2026
bash
php artisan vendor:publish --tag="laravel-s3-uploader-config"
bash
php artisan s3:upload {source} {destination}
bash
php artisan s3:upload storage/app/exports backups/2026
bash
php artisan s3:upload storage/app/exports backups/2026 --force
bash
php artisan s3:upload storage/app/exports backups/2026 --dry-run
bash
php artisan s3:upload storage/app/exports backups/2026 --disk=spaces