c4tech / upload
A basic package for handling uploaded files.
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/c4tech/upload
Requires
- php: >=5.4.0
- c4tech/support: ^3.0.0
- illuminate/support: ^5.0.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^4.0.0
This package is not auto-updated.
Last update: 2025-10-26 00:34:54 UTC
README
File uploads are nice. We were processing uploaded files in so many applications, that it became easier to make a single, polymorphic relation for reuse across applications and entities.
What's in the box?
The Upload model is simple enough. It comes paired with traits, for both Models and Repositories, to provide the necessary functionality to relate to uploads.
Installation and setup
- Add "c4tech/upload": "1.x"to your composer requirements and runcomposer update.
- Add C4tech\Upload\ServiceProviderto your service providers config array.
- Run php artisan vendor:publishto get the migrations.
- Run php artisan migrateto set up the migrations.
- (Optional) Edit config/upload.phpand change entries inmodelsandreposto match your class names.
- (Optional) Map the Repository Facades in your facades config array for fast access:
a. "Upload" => "C4tech\Upload\Facade"