You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+42-13Lines changed: 42 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,26 +11,55 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
## [Unreleased]
12
12
13
13
### Added
14
-
- Configuration documentation for each option in `config/media-uploader.php`, including environment variable overrides, presets (types, mimes, max_kb), and collection → preset mapping.
15
-
- Guidance for creating and registering custom themes:
16
-
- Create a new folder under `themes`, e.g. `custom`.
17
-
- Copy the existing `media-uploader` theme file from `tailwind` or `bootstrap` into the new `custom` folder (do not change the file name).
18
-
- Edit the copied file as desired.
19
-
- Register it in the `themes` config array, for example: `'custom' => 'media-uploader::themes.custom.media-uploader'`.
20
-
- Use it globally via `.env` (`MEDIA_UPLOADER_THEME=custom`) or per instance:
21
-
<livewire:media-uploader
22
-
:for="$post"
23
-
collection="images"
24
-
theme="custom"
25
-
/>
14
+
26
15
27
16
### Changed
28
-
- Clarified the behavior of `accept_from_config` and how the `accept` attribute is derived from the active preset.
29
17
30
18
### Fixed
31
19
32
20
33
21
---
22
+
## [v0.2.0] — 2025-09-01
23
+
24
+
### Added
25
+
-**Theme system** with **Tailwind (default)** and **Bootstrap** themes.
26
+
-**Custom themes** support:
27
+
1. Create a new folder under `resources/views/vendor/media-uploader/themes`, e.g. `custom/`.
28
+
2. Copy `media-uploader.blade.php` from `tailwind/` or `bootstrap/` into `custom/` (keep the filename).
- Configuration docs for each option in `config/media-uploader.php`, including **ENV overrides**, presets (`types`, `mimes`, `max_kb`), and **collection → preset** mapping.
43
+
44
+
### Changed
45
+
- Default view now resolves via the **theme map** (Tailwind by default).
46
+
Existing installs continue to render with Tailwind unless you switch themes.
- If you previously published the old (pre-theme) Blade, it will keep working if you’ve retained the legacy alias. If you want to use the new theme system, publish/move your override to `themes/<your-theme>/media-uploader.blade.php`.
51
+
52
+
### Migration Notes (only if you customized the old path)
53
+
- Minor migration required for users who published the old view (move file to the themed path).
Copy file name to clipboardExpand all lines: README.md
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Livewire Media Uploader
2
2
3
-
Livewire Media Uploader is a reusable Livewire v3 component that integrates seamlessly with Spatie Laravel Media Library. It ships a clean Tailwind Blade view (fully publishable), Alpine overlays for previews and confirmations, drag-and-drop uploads, per-file metadata (caption/description/order), configurable presets, name-conflict strategies, and optional SHA-256 duplicate detection. Drop it in, point it at a model, and you’re shipping in minutes.
3
+
Livewire Media Uploader is a reusable Livewire v3 component that integrates seamlessly with Spatie Laravel Media Library. It ships a clean Tailwind Blade view by default (fully publishable), Bootstrap theme as an option, Alpine overlays for previews/confirmations, drag-and-drop uploads, per-file metadata (caption/description/order), configurable presets, name-conflict strategies, and optional SHA-256 duplicate detection. Drop it in, point it at a model, and you’re shipping in minutes.
4
4
5
5
---
6
6
@@ -25,7 +25,10 @@ Livewire Media Uploader is a reusable Livewire v3 component that integrates seam
25
25
26
26
## Features
27
27
28
-
- ✅ Livewire v3 component with Tailwind-only Blade (no UI dependency)
> Note: The component’s Livewire + Alpine behavior is identical across themes. Only classes/markup differ. If you use the Bootstrap theme, make sure your layout includes Bootstrap CSS.
97
127
## Environment variables (optional)
98
128
You can override preset limits and accepted types/mimes via .env. These map directly to config/media-uploader.php:
0 commit comments