AuthServiceProvider.php
Go to the documentation of this file.
1 <?php
2 
3 namespace App\Providers;
4 
5 use Illuminate\Contracts\Auth\Access\Gate as GateContract;
6 use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7 
8 class AuthServiceProvider extends ServiceProvider
9 {
15  protected $policies = [
16  'App\Model' => 'App\Policies\ModelPolicy',
17  ];
18 
25  public function boot(GateContract $gate)
26  {
27  $this->registerPolicies($gate);
28 
29  //
30  }
31 }
boot(GateContract $gate)
Register any application authentication / authorization services.