mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-06 10:58:49 +00:00
120 - Creating Tickets at Time of Publish
This commit is contained in:
@@ -28,6 +28,7 @@ class Concert extends Model
|
||||
public function publish()
|
||||
{
|
||||
$this->update(['published_at' => $this->freshTimestamp()]);
|
||||
$this->addTickets($this->ticket_quantity);
|
||||
}
|
||||
|
||||
public function getFormattedDateAttribute()
|
||||
|
||||
Reference in New Issue
Block a user