TopWarehouseServiceProvider.php 881 字节
<?php

namespace lackoxygen\TopWarehouse;

use Illuminate\Support\ServiceProvider;
use Illuminate\Foundation\Application;

class TopWarehouseServiceProvider extends ServiceProvider
{
    /**
     * @var string
     */
    public const CONFIG_NAME = 'top-warehouse';


    /**
     * @var bool
     */
    protected $defer = true;

    /**
     * @var array
     */
    protected $commands = [

    ];

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->commands($this->commands);
    }

    public function boot()
    {
        if ($this->app instanceof Application && $this->app->runningInConsole()) {
            $this->publishes([__DIR__ . '/../config/top-warehouse.php' => config_path('top-warehouse.php')]);
        }
    }

    public function provides()
    {
        return [];
    }

}