| Install | |
|---|---|
composer require drpshtiwan/livewire-media-selector |
|
| Latest Version: | 3.0.0 |
| PHP: | >=8.1 |
A lightweight, WordPress-style media selector for Laravel applications powered by Livewire.
Full documentation: livewire-media.thejano.com

gallery, avatars)attachMedia, syncMedia, getMediaUrl) for quick model integrationcan_upload config and :canUpload attribute to disable Upload tab and uploadsNote: Livewire 3+ requires Laravel 10+. If you need Laravel 9 support, a Livewire v2–compatible variant is required (not included in this package version).
Require the package:
composer require drpshtiwan/livewire-media-selector
Publish the config (optional):
php artisan vendor:publish --tag=media-selector-config
Publish the migration and run it:
php artisan vendor:publish --tag=media-selector-migrations
php artisan migrate
Ensure your public disk is set up and linked:
php artisan storage:link
Publish the views (optional, if you want to customize the markup/classes):
php artisan vendor:publish --tag=media-selector-views
Publish the assets (CSS):
php artisan vendor:publish --tag=media-selector-assets --force
Simple usage:
<livewire:media-selector wire:model="media" collection="gallery" />
Read the docs for setup details, configuration options, and integration patterns.
See CHANGELOG.md for recent and upcoming changes.
Developed and maintained by drpshtiwan.
MIT License. See LICENSE for details.