return $this->hasMany(Result::class);
}
+ public function rolled_by_user() {
+ return $this->belongsTo(User::class, 'rolled_by');
+ }
+
public function tournament() {
return $this->belongsTo(Tournament::class);
}
protected $casts = [
'code' => 'array',
'locked' => 'boolean',
+ 'no_record' => 'boolean',
];
protected $fillable = [
'number',
+ 'no_record',
'tournament_id',
];
+ protected $with = [
+ 'rolled_by_user',
+ ];
+
}