mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-31 15:46:49 +00:00
135 - Unit Testing the Job
This commit is contained in:
@@ -7,4 +7,14 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class AttendeeMessage extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
public function concert()
|
||||
{
|
||||
return $this->belongsTo(Concert::class);
|
||||
}
|
||||
|
||||
public function recipients()
|
||||
{
|
||||
return $this->concert->orders()->pluck('email');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user