作者 竞泽

alter:修改属性名

@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 "extra": { 24 "extra": {
25 "laravel": { 25 "laravel": {
26 "providers": [ 26 "providers": [
27 - "Lackoxygen\\Customs\\CustomsProvider" 27 + "Lackoxygen\\Customs\\CustomsServiceProvider"
28 ] 28 ]
29 } 29 }
30 } 30 }
@@ -4,32 +4,12 @@ namespace Lackoxygen\Customs; @@ -4,32 +4,12 @@ namespace Lackoxygen\Customs;
4 4
5 use Illuminate\Support\ServiceProvider; 5 use Illuminate\Support\ServiceProvider;
6 6
7 -class CustomsProvider extends ServiceProvider 7 +class CustomsServiceProvider extends ServiceProvider
8 { 8 {
9 -  
10 - /**  
11 - * @var bool  
12 - */  
13 - protected $defer = true;  
14 -  
15 - /**  
16 - * @var array  
17 - */  
18 - protected $commands = [];  
19 -  
20 - /**  
21 - * Register any application services.  
22 - *  
23 - * @return void  
24 - */  
25 - public function register()  
26 - {  
27 - $this->commands($this->commands);  
28 - }  
29 -  
30 public function boot() 9 public function boot()
31 { 10 {
32 - $this->publishes([__DIR__ . '/../config/customs.php' => config_path('customs.php')]); 11 + $configPath = __DIR__ . '/../config/customs.php';
  12 + $this->publishes([$configPath => config_path('customs.php')], 'lackoxygen-customs');
33 } 13 }
34 14
35 /** 15 /**