public function quotes() { return $this->hasMany('App\\Models\\Invoice')->where('invoice_type_id', '=', INVOICE_TYPE_QUOTE); }