X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FParticipant.php;h=8aac88ce54a04877ecefe43c6f67950ec0d09c63;hb=d611bc90eab94fbce54e9e5485f15c20abf1ad31;hp=36ab3cf305e18ff1d2992ae106b6bb4117c3810b;hpb=55f2d7cd6c290a0d26db177d54d20c393f890bbb;p=alttp.git diff --git a/app/Models/Participant.php b/app/Models/Participant.php index 36ab3cf..8aac88c 100644 --- a/app/Models/Participant.php +++ b/app/Models/Participant.php @@ -17,4 +17,12 @@ class Participant extends Model return $this->belongsTo(User::class); } + protected $casts = [ + 'roles' => 'array', + ]; + + protected $with = [ + 'user', + ]; + }