@@ -35,9 +35,9 @@ class MediaManager extends Component
3535 public bool $ handleUploadProcess = true ;
3636
3737 protected $ listeners = [
38- 'media-manager:show ' => 'showMediaManager ' ,
38+ 'media-manager:show ' => 'showMediaManager ' ,
3939 'media-manager:file-removed ' => 'handleFieRemoved ' ,
40- 'unsplash:selected ' => 'handleUnsplashSelected ' ,
40+ 'unsplash:selected ' => 'handleUnsplashSelected ' ,
4141 ];
4242
4343 public function mount (bool $ handleUploadProcess = true )
@@ -48,7 +48,7 @@ public function mount(bool $handleUploadProcess = true)
4848 public function updatedFile ($ value )
4949 {
5050 if ($ value instanceof TemporaryUploadedFile) {
51- $ this ->whenFails (fn () => $ this ->reset ('file ' ))->validate ([
51+ $ this ->whenFails (fn () => $ this ->reset ('file ' ))->validate ([
5252 'file ' => [
5353 'mimes: ' . implode (', ' , config ('media-manager.image.allowed_file_types ' )),
5454 'max: ' . config ('media-manager.image.max_file_size ' ),
@@ -103,9 +103,9 @@ public function selectFile()
103103 }
104104
105105 $ this ->dispatchBrowserEvent ('media-manager:file-selected ' , [
106- 'id ' => $ this ->childComponentId ,
107- 'url ' => $ this ->file ,
108- 'path ' => $ filePath ?? $ this ->file ,
106+ 'id ' => $ this ->childComponentId ,
107+ 'url ' => $ this ->file ,
108+ 'path ' => $ filePath ?? $ this ->file ,
109109 'metadata ' => $ this ->metadata ,
110110 ]);
111111
@@ -122,7 +122,7 @@ public function handleUnsplashSelected($data)
122122 $ this ->childComponentData = $ data ;
123123 $ this ->file = $ data ['url ' ];
124124 $ this ->metadata = [
125- 'alt ' => $ data ['alt ' ],
125+ 'alt ' => $ data ['alt ' ],
126126 'caption ' => $ data ['caption ' ],
127127 ];
128128 }
@@ -142,7 +142,7 @@ public function getDiskProperty()
142142 public function getTabOptionsProperty ()
143143 {
144144 return [
145- 'upload ' => 'Upload ' ,
145+ 'upload ' => 'Upload ' ,
146146 'unsplash ' => 'Unsplash ' ,
147147 'from-url ' => 'From URL ' ,
148148 ];
0 commit comments