*/ public function toArray(Request $request): array { return array_merge(parent::toArray($request), [ 'text' => str($this->text)->replace("\n", '
') ]); } }