fynduck/files-upload
A Laravel package for handling file uploads, offering a simple way to process and store uploaded files in your PHP applications.
Install the package with Composer and let Laravel auto-discovery register the service provider:
composer require fynduck/files-upload
Publish any package config if the README instructs it:
php artisan vendor:publish --provider="Fynduck\FilesUpload\FilesUploadServiceProvider"
First place to look is the package README and config/files-upload.php (or similarly named config). Confirm your default disk in config/filesystems.php and the package’s default disk/path settings match your app. Then try the smallest use case: upload a single avatar or document from a controller, validate the request with Laravel’s file|mimes|max rules, pass the UploadedFile to the package’s upload helper/facade, and persist the returned path on a model. After upgrading to 4.2.1, re-test any workflow that replaces an existing file in place, since this release fixes an overwrite defect.
$fillable or handle them explicitly, and use the package’s delete/replace hooks on model update and delete.^4.2.1 and add a regression test that uploads the same filename twice and asserts exactly one file remains.Storage::fake() and assert file existence, path, and old-file removal. Specifically test overwrite behavior after the 4.2.1 fix, including rapid successive uploads.^4.2.1.php artisan config:clear. Merged package config can silently retain old values in cached environments.public disk are not web-accessible until php artisan storage:link has been run.DB::table() operations, and force deletes may bypass package hooks, leaving orphaned files.UploadedFile serialization. Prefer moving the file to a temporary path before dispatching, or perform the upload before queueing.Storage::disk($disk)->exists($path), inspect package config values with config('files-upload'), and review the package’s events or logs if uploads silently return unexpected paths.How can I help you explore Laravel packages today?