No Description

AuthServiceProvider.php 693B

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