A WordPress-style media management system for Laravel with modal library, image processing, and optimized frontend component support.
-
🖼️ WordPress-style Media Library Modal
-
⚡ Blade Component for Easy Integration
-
📁 Multiple Storage Disks (Local, S3, etc.)
-
✨ Image Processing (Thumbnails, Cropping)
-
🔗 Morphable Media Attachments via Trait
-
🚀 AJAX Uploads with Progress
-
🔍 Search & Filter Media
-
🎨 Frontend UI Fully Packaged
composer require exitdump/laravel-media
php artisan vendor:publish --tag=laravel-media-config
<x-media-picker name="thumbnail_id" />
This will open the modal with your media library and allow image selection.
use Exitdump\LaravelMedia\Traits\HasMedia;
class Post extends Model
{
use HasMedia;
// ...
}
$post = Post::find(1);
$media = $post->media;
return [
'default_disk' => 'public',
'path_prefix' => 'media',
'default_collection' => 'default',
'preserve_original_name' => false,
];
We follow Semantic Versioning:
v1.0.0
: Initial releasev1.0.0
: First stable releasev1.1.1
: Component & UX improvements, no breaking changes
MIT © Exitdump