public function scopeQuotes($query) { return $query->where('invoice_type_id', '=', INVOICE_TYPE_QUOTE)->where('is_recurring', '=', false); }