laravel-enso/documentsmanager

This package is abandoned and no longer maintained. The author suggests using the laravel-enso/documents package instead.

Documents Manager for Laravel Enso

3.0.4 2019-04-28 07:30 UTC

README

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Documents Manager for Laravel Enso.

This package works exclusively within the Enso ecosystem.

There is a front end implementation for this this api in the accessories package.

For live examples and demos, you may visit laravel-enso.com

Watch the demo

click on the photo to view a short demo in compatible browsers

Installation

Comes pre-installed in Enso.

Features

  • permits the management (upload, download, delete, show) of documents in the application
  • can attach documents to any other model
  • uses FileManager for file operations
  • uses the ImageTransformer package for optimizing the uploaded image files
  • security policies are used to enforce proper user authorization
  • comes with a Documentable trait that can be quickly added to the model you want to give this functionality to
  • offers various configuration options, including the option to delete all attached documents to a Documentable entity, when it gets deleted
  • creates a Document model that has a documentable morphTo relationship
  • polymorphic relationships are used, which makes it possible to attach documents to any other entity
  • once documents are attached to an entity, you should not be able to delete the entity without deciding what you want to do with the associated documents. This is configurable in the options, see below

Configuration & Usage

Be sure to check out the full documentation for this package available at docs.laravel-enso.com

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.