'plinko ball', 269 => 'smash eggs', 270 => 'spin wheel', ]; public static function onBeforeDelete(): bool { return false; } public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } public function getGameTypeTextAttr($value, $data) { $gameType = $data['game_type'] ?? 0; return self::GAME_TYPE_LIST[$gameType] ?? 'Unknown Game'; } protected $append = ['game_type_text']; }