This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require comotic/laravel-medialibrary-generators
If you haven't already done that, you must publish laravel-medialibray config file:
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"
Then choose the generator that fits your needs and update the path_generator
key of the config file.
That's it, profit!
-
UuidPathGenerator
: Use Media's UUID instead of key to name the folder -
SeparatedByModelPathGenerator
: Group media by model type then by media id
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.