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