Skip to content

Commit cb2e9e8

Browse files
committed
add load view form
1 parent 57cabc9 commit cb2e9e8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Providers/TelegramGitNotifierServiceProvider.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ public function boot(): void
2323
$this->loadRoutesFrom($routePath);
2424
}
2525

26-
$helperPath = __DIR__.'/../../common/helpers.php';
27-
if (file_exists($helperPath)) {
28-
require_once $helperPath;
26+
$viewPath = __DIR__.'/../../resources/views';
27+
if (file_exists($routePath)) {
28+
$this->loadViewsFrom($viewPath, 'telegram-git-notifier');
2929
}
3030

31+
$this->publishes([
32+
__DIR__.'/../../resources/views' => base_path('resources/views/vendor/telegram-git-notifier'),
33+
], 'views');
34+
3135
$this->loadTranslationsFrom(__DIR__.'/../../lang', 'telegram-git-notifier');
3236

3337
$this->publishes([

0 commit comments

Comments
 (0)