mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-05 16:49:02 +00:00
5.5 - Precomputing the Order Amount
This commit is contained in:
@@ -69,7 +69,7 @@ class Concert extends Model
|
||||
|
||||
public function createOrder($email, $tickets)
|
||||
{
|
||||
return Order::forTickets($tickets, $email);
|
||||
return Order::forTickets($tickets, $email, $tickets->sum('price'));
|
||||
}
|
||||
|
||||
public function addTickets($quantity)
|
||||
|
||||
Reference in New Issue
Block a user