From d05393ae8a9cbbb4426ae6a4d8366a53b0adb309 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Wed, 29 Jan 2025 18:43:46 +0000 Subject: [PATCH] fix: patch up response::view() --- src/Response.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Response.php b/src/Response.php index e59c160..af977a3 100755 --- a/src/Response.php +++ b/src/Response.php @@ -240,20 +240,20 @@ public function noContent() */ public function view(string $view, array $data = []) { - if (!function_exists('view')) { - $this->markup( + if (function_exists('view')) { + return $this->markup( view($view, $data), ); } if (app()->blade()) { - $this->markup( + return $this->markup( app()->blade()->render($view, $data), ); } if (app()->template()) { - $this->markup( + return $this->markup( app()->template()->render($view, $data), ); }