$object->getCompany()->id, 'user_id' => $object->getUser()->id, ]; } /** * @return array */ protected function rules(): array { return [ 'company_id' => 'required', 'user_id' => 'required', ]; } /** * @return array */ protected function messages(): array { return []; } }