mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
medal add sale_begin_time + sale_end_time + inventory
This commit is contained in:
@@ -15,10 +15,18 @@ class Medal extends NexusModel
|
||||
self::GET_TYPE_GRANT => ['text' => 'Grant'],
|
||||
];
|
||||
|
||||
protected $fillable = ['name', 'description', 'image_large', 'image_small', 'price', 'duration', 'get_type', 'display_on_medal_page'];
|
||||
protected $fillable = [
|
||||
'name', 'description', 'image_large', 'image_small', 'price', 'duration', 'get_type',
|
||||
'display_on_medal_page', 'sale_begin_time', 'sale_end_time', 'inventory',
|
||||
];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
protected $casts = [
|
||||
'sale_begin_time' => 'datetime',
|
||||
'sale_end_time' => 'datetime',
|
||||
];
|
||||
|
||||
public static function listGetTypes($onlyKeyValues = false): array
|
||||
{
|
||||
$results = self::$getTypeText;
|
||||
|
||||
Reference in New Issue
Block a user