X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=app%2FModels%2FParticipant.php;h=8aac88ce54a04877ecefe43c6f67950ec0d09c63;hb=eebc6384e56336b66ec250fc2aea3be6171d53ff;hp=c2a8d8ab861525c1bdedfa7b75a1e420613e5d80;hpb=96f21488ed9c9572e2f00147a1713e24cc77c543;p=alttp.git diff --git a/app/Models/Participant.php b/app/Models/Participant.php index c2a8d8a..8aac88c 100644 --- a/app/Models/Participant.php +++ b/app/Models/Participant.php @@ -17,6 +17,10 @@ class Participant extends Model return $this->belongsTo(User::class); } + protected $casts = [ + 'roles' => 'array', + ]; + protected $with = [ 'user', ];