\Test\Test\Policies\TestPolicy::class,// Bind Test2 policy \Test\Test\Models\Test2::class => \Test\Test\Policies\Test2Policy::class, ]; /** * Register any package authentication / authorization services. * * @param \Illuminate\Contracts\Auth\Access\Gate $gate * * @return void */ public function boot(GateContract $gate) { parent::registerPolicies($gate); } }