AuthServiceProvider.php 628 B

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