AppServiceProvider.php 661 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php namespace App\Providers;
  2. use Illuminate\Support\ServiceProvider;
  3. class AppServiceProvider extends ServiceProvider {
  4. /**
  5. * Bootstrap any application services.
  6. *
  7. * @return void
  8. */
  9. public function boot()
  10. {
  11. //
  12. }
  13. /**
  14. * Register any application services.
  15. *
  16. * This service provider is a great spot to register your various container
  17. * bindings with the application. As you can see, we are registering our
  18. * "Registrar" implementation here. You can add your own bindings too!
  19. *
  20. * @return void
  21. */
  22. public function register()
  23. {
  24. $this->app->bind(
  25. 'Illuminate\Contracts\Auth\Registrar',
  26. 'App\Services\Registrar'
  27. );
  28. }
  29. }