Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id | item_id | value | date
- $entry = UserBuy::firstOrNew(array('item_id' => $item_id,'user_id' => Auth::id(), 'date' => $date));
- $entry->value = $value;
- $entry->save();
- id | buy_id | sale_price
Add Comment
Please, Sign In to add comment