transformKeys(explode(",",$value)))->get(); if(!$invoices || $invoices->count() == 0) return false; foreach ($invoices as $invoice) { if(! $invoice->isPayable()) return false; } return true; } /** * @return string */ public function message() { return "One or more of these invoices have been paid"; } }