yuges-code / laravel-mediable
Package for easily uploading and attaching media files to Laravel eloquent models
1.0.4
2025-02-04 16:46 UTC
Requires
- php: ^8.0
- ext-exif: *
- ext-imagick: *
- yuges-code/image-php: *
README
Package for easily uploading and attaching media files to Laravel eloquent models
Installation
Preparing the database
You need to publish the migration to create the media table:
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-migrations"
After that, you need to run migrations.
php artisan migrate
Publishing the config file
Publishing the config file (config/mediable.php
) is optional:
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-config"