@@ -15,8 +15,8 @@ class NamingRuleSimpleResource extends JsonResource
public function toArray(Request $request): array
{
return [
- 'id' => $this->id,
- 'name' => $this->name,
+ 'id' => $this?->id,
+ 'name' => $this?->name,
];
}