<?php
namespace App\Domains\Sms\Providers;

use View;
use Lang;
use Illuminate\Support\ServiceProvider;
use App\Domains\Sms\Providers\MiddlewareProvider;
use App\Domains\Sms\Providers\RouteServiceProvider;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;

class SmsServiceProvider extends ServiceProvider
{
    /**
     * 引导启动任何应用程序服务
     *
     * php artisan make:migration --path=app/Domains/Sms/Database/migrations
     *
     * @return void
     */
    public function boot()
    {
        // $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
        // $this->mergeConfigFrom(__DIR__ . '/../config.php', 'domain.sms');
    }

    /**
     * 注册一个服务提供者
     *
     * @return void
     */
    public function register()
    {
        $this->app->register(RouteServiceProvider::class);
        $this->app->register(MiddlewareServiceProvider::class);
    }
}
