您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
575 B

  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\Facades\Gate;
  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 authentication / authorization services.
  17. *
  18. * @return void
  19. */
  20. public function boot()
  21. {
  22. $this->registerPolicies();
  23. //
  24. }
  25. }