|
@@ -39,8 +39,8 @@ public function toArray(Request $request): array
|
|
|
'avatar_url' => $this->avatar_url
|
|
'avatar_url' => $this->avatar_url
|
|
|
? Storage::temporaryUrl($this->avatar_url, now()->addHours(24))
|
|
? Storage::temporaryUrl($this->avatar_url, now()->addHours(24))
|
|
|
: null,
|
|
: null,
|
|
|
- 'created_at' => Carbon::parse($this->created_at)->format('Y-m-d H:i:s'),
|
|
|
|
|
- 'updated_at' => Carbon::parse($this->updated_at)->format('Y-m-d H:i:s'),
|
|
|
|
|
|
|
+ 'created_at' => Carbon::parse($this->created_at)->format('Y-m-d'),
|
|
|
|
|
+ 'updated_at' => Carbon::parse($this->updated_at)->format('Y-m-d'),
|
|
|
|
|
|
|
|
'city' => $this->whenLoaded('city', fn() => [
|
|
'city' => $this->whenLoaded('city', fn() => [
|
|
|
'id' => $this->city->id,
|
|
'id' => $this->city->id,
|