projecten
This commit is contained in:
@@ -29,13 +29,14 @@ class Customer extends BaseModel {
|
||||
if( $customerID == 0)
|
||||
{
|
||||
$customer = Customer::create($customer);
|
||||
$customerID = $customer['id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$customer = Customer::whereId($customerID)->update($customer);
|
||||
Customer::whereId($customerID)->update($customer);
|
||||
}
|
||||
|
||||
return $customer['id'];
|
||||
return $customerID;
|
||||
}
|
||||
|
||||
public static function removeCustomer($customerID)
|
||||
|
||||
Reference in New Issue
Block a user