EventServiceProvider, Broadcasting). Enables seamless integration with existing job queues (e.g., AssembleFileJob) and real-time updates via Laravel Echo.AssembleFileJob must run on a queue worker (not sync), which is standard practice for Laravel but requires infrastructure setup.Cache::lock() for concurrency control. Misconfiguration (e.g., using file driver) could lead to race conditions. Requires Redis/Memcached/DB for production.storage/app/chunky/temp/ until assembly. Large-scale deployments need sufficient disk space or a dedicated staging directory.database lock driver) be required?chunky.staging_directory point? Cloud storage (e.g., S3) or local disk? Does it need to handle files larger than /tmp?chunky.metadata.max_keys and chunky.max_files_per_batch.)auth user_id == upload user_id. Custom Authorizer may be needed.)chunky.metrics.*) required for monitoring? If so, is Datadog/Prometheus integrated?autoRetry/maxRetries in frontend clients.)chunky:cleanup) critical, or can expired uploads be manually managed?#[On]).AssembleFileJob. Avoids sync driver.storage/app/chunky/temp/.composer require netipar/laravel-chunky.php artisan vendor:publish --tag=chunky-config.php artisan migrate.chunky.routes.middleware.npm install @netipar/chunky-vue3).useChunkUpload/useBatchUpload composables.<livewire:chunky-upload /> to Blade templates.AssembleFileJob runs on a queue worker (not sync). Test with php artisan queue:work.UploadCompleted).chunky.metrics.*) and monitoring.php artisan chunky:cleanup).chunk_size, max_concurrent, and max_retries based on performance data.chunky.staging_directory for large files.AssembleFileJob failures).chunky.staging_directory storage (if using local disk).UPGRADE.md).chunky.lock_driver (Redis recommended), network stability, and disk space.AssembleFileJob exceptions. Verify file permissions in chunky.staging_directory.chunky.routes.middleware includes proper auth (e.g., Sanctum).config/chunky.php if needed.onError callbacks.chunky.staging_directory across servers if using local storage (e.g., via shared network storage or cloud sync).chunk_size (default: 5MB) based on network conditions and file types.max_concurrent in frontend clients for faster uploads (trade-off: higher server load).AssembleFileJob for large files (e.g., use faster storage backends like S3).chunky.metrics.* for bottlenecks (e.g., chunk upload rate, assembly time).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Queue worker crashes | Unassembled chunks; incomplete uploads | Use supervisor (e.g., Supervisor, Kubernetes) to restart workers. |
Disk full in staging_directory |
Upload failures | Set chunky.staging_directory to a monitored cloud storage or larger disk. |
| Redis/Memcached |
How can I help you explore Laravel packages today?