Rework admin panel and other
This commit is contained in:
@@ -15,8 +15,8 @@ class ClientBreadcrumbSection extends JsonResource
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'title' => $this->title,
|
||||
'slug' => $this->slug,
|
||||
'title' => $this->title ?? null,
|
||||
'slug' => $this->slug ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class ClientEventFullResource extends JsonResource
|
||||
'event_time_start' => Carbon::parse($this->event_time_start)->format('H:i'),
|
||||
'address' => $this->address,
|
||||
'is_online' => $this->is_online,
|
||||
'category' => $this->category->title ?? null,
|
||||
'category' => $this->category ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class ClientEventResource extends JsonResource
|
||||
'event_time_start' => Carbon::parse($this->event_time_start)->format('H:i'),
|
||||
'address' => $this->address,
|
||||
'is_online' => $this->is_online,
|
||||
'category' => $this->category->title ?? null,
|
||||
'category' => $this->category ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user