123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Providers;
- use Overtrue\EasySms\EasySms;
- use Illuminate\Support\ServiceProvider;
- class EasySmsServiceProvider extends ServiceProvider
- {
- /**
- * Bootstrap the application services.
- *
- * @return void
- */
- public function boot()
- {
- //
- }
- /**
- * Register the application services.
- *
- * @return void
- */
- public function register()
- {
- $this->app->singleton(EasySms::class, function ($app) {
- return new EasySms(config('easysms'));
- });
- $this->app->alias(EasySms::class, 'easysms');
- }
- }
|