forked from vyuldashev/nova-permission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToolServiceProvider.php
56 lines (47 loc) · 1.07 KB
/
ToolServiceProvider.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 Vyuldashev\NovaPermission;
use Illuminate\Support\ServiceProvider;
use Laravel\Nova\Events\ServingNova;
use Laravel\Nova\Nova;
class ToolServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'nova-permission-tool');
$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/nova-permission-tool'),
], 'nova-permission-tool-lang');
$this->app->booted(function () {
$this->routes();
});
Nova::serving(function (ServingNova $event) {
//
});
}
/**
* Register the tool's routes.
*
* @return void
*/
protected function routes()
{
if ($this->app->routesAreCached()) {
return;
}
//
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}