This commit is contained in:
2018-01-31 11:10:17 +01:00
parent f3bf0c9f80
commit 05c165c9ed
27 changed files with 724 additions and 265 deletions
+4 -2
View File
@@ -52,13 +52,15 @@ class Offer extends BaseModel {
if ( $offerID == 0 )
{
$offer = Offer::create( $offer );
$offerID = $offer['id'];
}
else
{
$offer = Offer::whereId( $offerID )->update( $offer );
Offer::whereId( $offerID )->update( $offer );
}
return $offer['id'];
return $offerID;
}
public static function removeOffer( $offerID )