*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'key' => $this->key, 'value' => $this->value, 'type' => $this->type, 'created_at' => $this->created_at->toDateTimeString(), 'updated_at' => $this->updated_at->toDateTimeString(), ]; } }