AppServiceProvider.php 434 B

123456789101112131415161718192021222324252627282930
  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->app->bind(
  21. 'Illuminate\Contracts\Auth\Registrar',
  22. 'App\Services\Registrar'
  23. );
  24. }
  25. }