app/Models/Card.php: Add cast to jackpot field.
This commit is contained in:
parent
b7ba158675
commit
6fdcf6aad9
1 changed files with 9 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue