Archived
1
0
Fork 0

Admin/Card: Adding jackpot field.

This commit is contained in:
Henrik Hautakoski 2023-02-19 15:42:03 +01:00
parent 0ee6592b63
commit 11eb3ccdd2
3 changed files with 7 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class CardController extends BaseController
'body' => 'Body',
'subject' => 'Subject',
'subject_type' => 'Subject Type',
'jackpot' => 'Jackpot',
'raid.name' => 'Raid',
],
'sort_columns' => [

View file

@ -48,6 +48,7 @@ class CardForm extends ModelForm
'record.character_id' => 'exists:' . Character::class . ',id|nullable',
'record.raid_id' => 'exists:' . Raid::class . ',id|nullable',
'record.class' => 'in:' . collect($this->classes)->keys() . '|nullable',
'record.jackpot' => 'boolean',
];
}