public function registerPolicies(GateContract $gate) { foreach ($this->policies as $key => $value) { $gate->policy($key, $value); } }