mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
133 - Storing Messages for Attendees
This commit is contained in:
@@ -15,6 +15,11 @@ class Concert extends Model
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function attendeeMessages()
|
||||
{
|
||||
return $this->hasMany(AttendeeMessage::class);
|
||||
}
|
||||
|
||||
public function scopePublished($query)
|
||||
{
|
||||
return $query->whereNotNull('published_at');
|
||||
|
||||
Reference in New Issue
Block a user