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. * @return void
  17. */
  18. public function register()
  19. {
  20. // This service provider is a great spot to register your various container
  21. // bindings with the application. As you can see, we are registering our
  22. // "Registrar" implementation here. You can add your own bindings too!
  23. $this->app->bind(
  24. 'Illuminate\Contracts\Auth\Registrar',
  25. 'App\Services\Registrar'
  26. );
  27. }
  28. }