main
toArray
public function toArray($request = null): array { return [ 'id' => $this->id, 'name' => $this->name,