EasySmsServiceProvider.php 578 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use Overtrue\EasySms\EasySms;
  5. class EasySmsServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register services.
  9. *
  10. * @return void
  11. */
  12. public function register()
  13. {
  14. //
  15. $this->app->singleton(EasySms::class, function ($app) {
  16. return new EasySms(config('easysms'));
  17. });
  18. $this->app->alias(EasySms::class, 'easysms');
  19. }
  20. /**
  21. * Bootstrap services.
  22. *
  23. * @return void
  24. */
  25. public function boot()
  26. {
  27. }
  28. }