maloshtanov / uploader
Simple model attachment uploader
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/maloshtanov/uploader
Requires
- php: >=7.1
- webpatser/laravel-uuid: ^3.0
This package is auto-updated.
Last update: 2025-11-23 08:21:21 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