PHP code example of scalexy / filament-bulk-upload
1. Go to this page and download the library: Download scalexy/filament-bulk-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/ */
scalexy / filament-bulk-upload example snippets
use ScaleXY\FilamentBulkUpload\Forms\BulkMediaUpload;
BulkMediaUpload::make('media')
->collection('documents')
->disk('s3')
->maxFiles(1000)
->maxFileSize(976_562) // Optional override in KiB; omitted default is exactly 1 GB.
->acceptedFileTypes(['image/*', 'application/pdf'])
->uploadConcurrency(4)
->queue('bulk-uploads');
use Illuminate\Support\Facades\Schedule;
Schedule::command('bulk-upload:recover')->everyFiveMinutes()->withoutOverlapping();
Schedule::command('bulk-upload:cleanup')->hourly()->withoutOverlapping();