From b7ba15867542c6cce3d5161e8101b220d0a59e9c Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 12 Mar 2023 18:36:38 +0100 Subject: [PATCH] app/Models/Card.php: Add default value for 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 5487b73..5df93c8 100644 --- a/app/Models/Card.php +++ b/app/Models/Card.php @@ -21,6 +21,15 @@ class Card extends Model protected $appends = ['subject', 'subject_type']; + /** + * The model's default values for attributes. + * + * @var array + */ + protected $attributes = [ + 'jackpot' => false, + ]; + public $fillable = [ 'body', 'character_id',