正在显示
2 个修改的文件
包含
4 行增加
和
24 行删除
| @@ -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 | /** |
-
请 注册 或 登录 后发表评论