whereArchive( 'F' ); $customers = $customers->get(); return $customers; } public static function saveCustomer( $customerID, $customer ) { $customer = (array)$customer; if( $customerID == 0) { $customer = Customer::create($customer); $customerID = $customer['id']; } else { Customer::whereId($customerID)->update($customer); } return $customerID; } public static function removeCustomer($customerID) { Customer::whereId($customerID)->delete(); } }