c4tech/upload

A basic package for handling uploaded files.

1.0.1 2015-10-07 12:46 UTC

This package is not auto-updated.

Last update: 2024-11-23 19:06:02 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.

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage

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

  1. Add "c4tech/upload": "1.x" to your composer requirements and run composer update.
  2. Add C4tech\Upload\ServiceProvider to your service providers config array.
  3. Run php artisan vendor:publish to get the migrations.
  4. Run php artisan migrate to set up the migrations.
  5. (Optional) Edit config/upload.php and change entries in models and repos to match your class names.
  6. (Optional) Map the Repository Facades in your facades config array for fast access: a. "Upload" => "C4tech\Upload\Facade"