Skip to content

Commit ad22295

Browse files
committed
Update LaravelUserMonitoringServiceProvider.php
1 parent f907ecd commit ad22295

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Providers/LaravelUserMonitoringServiceProvider.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function boot()
3838
$this->publishMigrations();
3939
$this->publishViews();
4040
$this->publishMiddleware();
41+
$this->publishRoute();
4142

4243
$this->viewComposer();
4344
}
@@ -90,6 +91,18 @@ private function publishMiddleware()
9091
], 'laravel-user-monitoring-middlewares');
9192
}
9293

94+
/**
95+
* Publish route files.
96+
*
97+
* @return void
98+
*/
99+
private function publishRoute()
100+
{
101+
$this->publishes([
102+
__DIR__ . '/../../routes/web.php' => base_path('routes/user-monitoring.php'),
103+
], 'laravel-user-monitoring-routes');
104+
}
105+
93106
/**
94107
* View Composer.
95108
*

0 commit comments

Comments
 (0)