From 6fdcf6aad9535c1e4f0cd03b26f4a89340b3d92d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 12 Mar 2023 18:43:24 +0100 Subject: [PATCH] app/Models/Card.php: Add cast to jackpot field. --- app/Models/Card.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Models/Card.php b/app/Models/Card.php index 5df93c8..ab437e8 100644 --- a/app/Models/Card.php +++ b/app/Models/Card.php @@ -38,6 +38,15 @@ class Card extends Model 'role' ]; + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'jackpot' => 'boolean', + ]; + /** * Get the character that's associated with this card. */