/app/Providers/AuthServiceProvider.php

https://bitbucket.org/mdoviedor/hotelium · PHP · 25 lines · 13 code · 4 blank · 8 comment · 0 complexity · 453967845003b8ea30898f592d0e75e3 MD5 · raw file

  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
  4. class AuthServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * The policy mappings for the application.
  8. *
  9. * @var array
  10. */
  11. protected $policies = [
  12. 'App\Model' => 'App\Policies\ModelPolicy',
  13. ];
  14. /**
  15. * Register any authentication / authorization services.
  16. */
  17. public function boot()
  18. {
  19. $this->registerPolicies();
  20. }
  21. }