AuthServiceProvider.php 474 B

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