generated from liutk/owl-admin-base
main
parent
3500b6b5bb
commit
e428027678
|
|
@ -27,6 +27,7 @@ class ActivityGameResource extends JsonResource
|
||||||
'little_game_at' => $this->game_at->format('H:i'),
|
'little_game_at' => $this->game_at->format('H:i'),
|
||||||
'game_day' => $this->game_at->format('Y-m-d'),
|
'game_day' => $this->game_at->format('Y-m-d'),
|
||||||
'game_at_comparison_now' => now()->gte($this->game_at),
|
'game_at_comparison_now' => now()->gte($this->game_at),
|
||||||
|
'mark' => $this->mark,
|
||||||
'has_guess' => !$this->logs->isEmpty() ? ($this->logs[0]->score):false,
|
'has_guess' => !$this->logs->isEmpty() ? ($this->logs[0]->score):false,
|
||||||
'state' => $this->state,
|
'state' => $this->state,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue