user(); return $auth_user->isAdmin() || ($auth_user->id == $this->user->id); } public function rules() { return []; } public function prepareForValidation() { $input = $this->all(); if(isset($input['company_user']['user'])) { unset($input['company_user']['user']); } $this->replace($input); } }