|string> */ public function rules(): array { return [ 'project_id' => [ 'required', Rule::exists('projects', 'id')->where($this->userCompanyWhere()), ], 'items' => [ 'required', 'array' ] ]; } }