説明なし

AppServiceProvider.php 664B

1234567891011121314151617181920212223242526272829303132333435
  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. }