Skip to content

Commit 7022cde

Browse files
committed
publish config properly
1 parent fe8a9c9 commit 7022cde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ServiceProvider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
1212
*/
1313
public function register()
1414
{
15-
// Merge config
15+
// Config
16+
$this->publishes([
17+
__DIR__.'/config/route2class.php' => config_path('route2class.php')
18+
]);
1619
$this->mergeConfigFrom(
17-
__DIR__.'/config/routetoclass.php', 'routetoclass'
20+
__DIR__.'/config/route2class.php', 'route2class'
1821
);
1922

2023
// Create app singleton

0 commit comments

Comments
 (0)