AuthServiceProvider.php 536 B

123456789101112131415161718192021222324252627
  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\Models\Model' => 'App\Policies\ModelPolicy',
  13. ];
  14. /**
  15. * Register any authentication / authorization services.
  16. *
  17. * @return void
  18. */
  19. public function boot()
  20. {
  21. $this->registerPolicies();
  22. }
  23. }