Skip to content

Commit 8b18746

Browse files
author
Sandip Patel
committed
key change for modules
1 parent de21675 commit 8b18746

File tree

4 files changed

+4
-49
lines changed

4 files changed

+4
-49
lines changed

src/Facade.php

-16
This file was deleted.

src/ServiceProvider.php

+4-10
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ class ServiceProvider extends RouteServiceProvider
2222
*/
2323
public function boot()
2424
{
25-
$this->loadRoutesFrom(__DIR__. '/routes.php');
26-
$this->loadMigrationsFrom(__DIR__. '/migrations');
27-
$this->mergeConfigFrom(__DIR__.'/config.php', 'modules');
28-
$this->loadTranslationsFrom(__DIR__.'/translations', 'modules');
29-
30-
$this->publishes([
31-
__DIR__.'/translations' => resource_path('lang/vendor/modules')
32-
]);
33-
34-
3525
$plugins = config('modules', []);
3626

3727
foreach ($plugins as $plugin => $desc)
@@ -56,5 +46,9 @@ public function boot()
5646
}
5747
}
5848
}
49+
50+
$this->publishes([
51+
__DIR__. '/config.php' => config_path('modules.php')
52+
]);
5953
}
6054
}

src/config.php

-13
This file was deleted.

src/routes.php

-10
This file was deleted.

0 commit comments

Comments
 (0)