mlbrgn/laravel-medialibrary-extensions

Extensions designed for use with the Media Library package by Spatie. Adds a single image uploader, multiple image uploader and a modal with carousel

1.0.1 2025-06-23 23:35 UTC

This package is auto-updated.

Last update: 2025-06-23 23:36:15 UTC


README

This package adds functionality toMedia Library package by Spatie:

  • Providing a view to upload multiple media
  • Providing a view to upload single media

Requirements

This package assumes that spatie/laravel-medialibrary is installed and its default migration has been run to create the media table.

Theme

The default themes are:

  • plain
  • bootstrap-5

Publishing

Several resources can be published:

  • config
  • views

Icons

For icons to work, you will have to install a Blade UIKit/Blade-icons package.

The package is configured to use Bootstrap icons by default. To display them properly install

   composer require davidhsianturi/blade-bootstrap-icons

You can override the icons in the published configuration file of this package and install another Blade UIKit/Blade-icons package

php artisan vendor:publish --tag=media-library-extensions-config
php artisan vendor:publish --tag=media-library-extensions-views
php artisan vendor:publish --tag=media-library-extensions-assets
php artisan vendor:publish --tag=media-library-extensions-policy
php artisan vendor:publish --tag=media-library-extensions-translations

Testing

This package uses Pest PHP for testing. For more information on how to write tests for this package, see the TESTING.md guide.