yuges-code / laravel-mediable
๐ด Package for easily uploading and attaching media files to Laravel eloquent models
Fund package maintenance!
yuges-code
Requires
- php: ^8.4
- ext-exif: *
- ext-imagick: *
- yuges-code/image-php: *
- yuges-code/laravel-orderable: ^1.0
- yuges-code/laravel-package: ^1.1
Requires (Dev)
- orchestra/testbench: ^10.0
README

Laravel Mediable
๐ด Package for easily uploading and attaching media files to Laravel eloquent models
๐ฟ Installation
โ Composer
You can install the package via composer:
composer require yuges-code/laravel-mediable
โ Publishing Config
Publishing the config file (config/mediable.php) is optional:
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-configs"
โ Publishing Migrations
You need to publish the migration to create the groups table:
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-migrations"
โ Running Migrations
After that, you need to run migrations:
php artisan migrate
๐งช Running Tests
โ PHPUnit tests
To run tests, run the following command:
composer test
โ๏ธ License
The MIT License (MIT). Please see License File for more information.
๐๐ผโโ๏ธ Authors Information
Created in 2025 by: