AuthServiceProvider.php 688 B

12345678910111213141516171819202122232425262728293031
  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. parent::registerPolicies($gate);
  24. //
  25. }
  26. }