maloshtanov / uploader
Simple model attachment uploader
0.5
2019-02-13 09:48 UTC
Requires
- php: >=7.1
- webpatser/laravel-uuid: ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-23 10:04:52 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