135 - Unit Testing the Job

This commit is contained in:
Adam Wathan
2017-08-22 15:04:13 -04:00
parent 028e8bab41
commit d27fb532d0
4 changed files with 104 additions and 1 deletions

View File

@@ -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');
}
}