pluck('name', 'id'); return $dropdown; } /** * Retrieves the default invoice scheme */ public static function getDefault($business_id) { $default = InvoiceScheme::where('business_id', $business_id) ->where('is_default', 1) ->first(); return $default; } }