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