1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Alive2212\LaravelSmartRestful; |
4
|
|
|
|
5
|
|
|
use Illuminate\Support\ServiceProvider; |
6
|
|
|
|
7
|
|
|
class LaravelSmartRestfulServiceProvider extends ServiceProvider |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* Perform post-registration booting of services. |
11
|
|
|
* |
12
|
|
|
* @return void |
13
|
|
|
*/ |
14
|
|
|
public function boot() |
15
|
|
|
{ |
16
|
|
|
$this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_smart_restful'); |
17
|
|
|
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'alive2212'); |
18
|
|
|
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
19
|
|
|
// $this->loadRoutesFrom(__DIR__.'/routes.php'); |
20
|
|
|
|
21
|
|
|
// Publishing is only necessary when using the CLI. |
22
|
|
|
if ($this->app->runningInConsole()) { |
23
|
|
|
|
24
|
|
|
// Publishing the configuration file. |
25
|
|
|
// $this->publishes([ |
26
|
|
|
// __DIR__.'/../config/laravelwalletservice.php' => config_path('laravelwalletservice.php'), |
27
|
|
|
// ], 'laravelwalletservice.config'); |
28
|
|
|
|
29
|
|
|
// Publishing the views. |
30
|
|
|
/*$this->publishes([ |
31
|
|
|
__DIR__.'/../resources/views' => base_path('resources/views/vendor/alive2212'), |
32
|
|
|
], 'laravelwalletservice.views');*/ |
33
|
|
|
|
34
|
|
|
// Publishing assets. |
35
|
|
|
/*$this->publishes([ |
36
|
|
|
__DIR__.'/../resources/assets' => public_path('vendor/alive2212'), |
37
|
|
|
], 'laravelwalletservice.views');*/ |
38
|
|
|
|
39
|
|
|
// Publishing the translation files. |
40
|
|
|
$this->publishes([ |
41
|
|
|
__DIR__.'/../resources/lang/' => resource_path('lang/vendor/alive2212'), |
42
|
|
|
], 'laravel_smart_restful.lang'); |
43
|
|
|
|
44
|
|
|
// Registering package commands. |
45
|
|
|
// $this->commands([]); |
46
|
|
|
} |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Register any package services. |
51
|
|
|
* |
52
|
|
|
* @return void |
53
|
|
|
*/ |
54
|
|
|
public function register() |
55
|
|
|
{ |
56
|
|
|
// |
57
|
|
|
} |
58
|
|
|
} |