正在显示
1 个修改的文件
包含
2 行增加
和
21 行删除
| @@ -6,29 +6,10 @@ use Illuminate\Support\ServiceProvider; | @@ -6,29 +6,10 @@ use Illuminate\Support\ServiceProvider; | ||
| 6 | 6 | ||
| 7 | class TopWarehouseServiceProvider extends ServiceProvider | 7 | class TopWarehouseServiceProvider extends ServiceProvider |
| 8 | { | 8 | { |
| 9 | - /** | ||
| 10 | - * @var bool | ||
| 11 | - */ | ||
| 12 | - protected $defer = true; | ||
| 13 | - | ||
| 14 | - /** | ||
| 15 | - * @var array | ||
| 16 | - */ | ||
| 17 | - protected $commands = []; | ||
| 18 | - | ||
| 19 | - /** | ||
| 20 | - * Register any application services. | ||
| 21 | - * | ||
| 22 | - * @return void | ||
| 23 | - */ | ||
| 24 | - public function register() | ||
| 25 | - { | ||
| 26 | - $this->commands($this->commands); | ||
| 27 | - } | ||
| 28 | - | ||
| 29 | public function boot() | 9 | public function boot() |
| 30 | { | 10 | { |
| 31 | - $this->publishes([__DIR__ . '/../config/top-warehouse.php' => config_path('top-warehouse.php')]); | 11 | + $configPath = __DIR__ . '/../config/top-warehouse.php'; |
| 12 | + $this->publishes([$configPath => config_path('top-warehouse.php')], 'lackoxygen-top-warehouse'); | ||
| 32 | } | 13 | } |
| 33 | 14 | ||
| 34 | /** | 15 | /** |
-
请 注册 或 登录 后发表评论