Download the PHP package lumerel/livewire-media-library without Composer
On this page you can find all versions of the php package lumerel/livewire-media-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lumerel/livewire-media-library
More information about lumerel/livewire-media-library
Files in lumerel/livewire-media-library
Package livewire-media-library
Short Description Minimal media library for Laravel Livewire 3
License MIT
Informations about the package livewire-media-library
Livewire Media Library
A minimal, production-ready image media library for Laravel 10/11 and Livewire 3.
Installation
Add the repository locally and require the package:
Publish the configuration and run migrations:
Publish the views:
Usage
In you app.css file, add for tailwindcss support
Render the uploader and gallery components in your Blade view:
Alternatively, use the browser component to open the gallery and uploader inside a modal:
Listen for the lw-media:selected
event to get the selected media's id
and path
.
Switch to the Flux or Bootstrap theme by updating the config:
Install livewire/flux if you want to use the Flux-styled views. Include Bootstrap in your layout if you switch to the Bootstrap theme.
If intervention/image
is installed the package will create conversions (thumb, preview) for uploaded images.
The download route /lw-media/{media}
proxies files through Laravel's Storage::response()
which is useful if direct disk URLs are not desired.
Security
Media files may expose their URLs if stored on public disks. Use the included download route or secure disks as needed.
All versions of livewire-media-library with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
livewire/livewire Version ^3.0