maloshtanov/uploader

Simple model attachment uploader

0.5 2019-02-13 09:48 UTC

This package is auto-updated.

Last update: 2024-04-23 05:12:59 UTC


README

Simple model attachment uploader and autodelete attachments with delete model records

Installation

Step 1: Install the package

Install the package via Composer:

composer require maloshtanov/uploader

Step 2: Publish the package config file

php artisan vendor:publish --provider="Maloshtanov\Uploader\UploaderServiceProvider"

Step 3: Update needed models

Add attachment support to your models by using the AttachmentAutoDelete trait:

class ... extends Model {
    use Maloshtanov\Uploader\Traits\AttachmentAutoDelete;
}

Usage

Will be later