The expression parent::render(); of type Illuminate\Contracts\Vie...ry|Illuminate\View\View adds the type Illuminate\Contracts\View\Factory to the return on line 29 which is incompatible with the return type declared by the interface Illuminate\Contracts\Support\Renderable::render of type string.