LaravelPackages.net
Acme Inc.
Toggle sidebar
comotic/laravel-medialibrary-generators

Collections of Path generators for Spatie laravel-medialibrary pacakge

519
3
1.0.0
About comotic/laravel-medialibrary-generators

comotic/laravel-medialibrary-generators is a Laravel package for collections of path generators for spatie laravel-medialibrary pacakge. It currently has 3 GitHub stars and 519 downloads on Packagist (latest version 1.0.0). Install it with composer require comotic/laravel-medialibrary-generators. Discover more Laravel packages by comotic or browse all Laravel packages to compare alternatives.

Last updated

Collection of Path generators for Spatie laravel-medialibrary package

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require comotic/laravel-medialibrary-generators

Usage

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!

Providers

  • UuidPathGenerator: Use Media's UUID instead of key to name the folder
  • SeparatedByModelPathGenerator: Group media by model type then by media id

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Star History Chart