-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleServiceProvider.php
56 lines (48 loc) · 1.21 KB
/
ModuleServiceProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Biigle\Modules\Module;
use Biigle\Services\Modules;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
class ModuleServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @param Modules $modules
* @param Router $router
* @return void
*/
public function boot(Modules $modules, Router $router)
{
$this->loadViewsFrom(__DIR__.'/resources/views', 'module');
$router->group([
'namespace' => 'Biigle\Modules\Module\Http\Controllers',
'middleware' => 'web',
], function ($router) {
require __DIR__.'/Http/routes.php';
});
$modules->register('module', [
'viewMixins' => [
'dashboardMain',
],
'controllerMixins' => [
//
],
'apidoc' => [
//__DIR__.'/Http/Controllers/Api/',
],
]);
$this->publishes([
__DIR__.'/public/assets' => public_path('vendor/module'),
], 'public');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}