Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 14467f8

Browse files
committed
fix “patterns" directory does not exist
1 parent 55b59ee commit 14467f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MediaManagerServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ protected function packagePublish()
6565
__DIR__ . '/resources/views' => resource_path('views/vendor/MediaManager'),
6666
], 'view');
6767

68-
$this->viewComp();
68+
if (app('files')->exists(public_path('assets/vendor/MediaManager/patterns'))) {
69+
$this->viewComp();
70+
}
6971
}
7072

7173
protected function viewComp()

0 commit comments

Comments
 (0)