Skip to content

Commit d05393a

Browse files
committed
fix: patch up response::view()
1 parent 8bd945f commit d05393a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,20 @@ public function noContent()
240240
*/
241241
public function view(string $view, array $data = [])
242242
{
243-
if (!function_exists('view')) {
244-
$this->markup(
243+
if (function_exists('view')) {
244+
return $this->markup(
245245
view($view, $data),
246246
);
247247
}
248248

249249
if (app()->blade()) {
250-
$this->markup(
250+
return $this->markup(
251251
app()->blade()->render($view, $data),
252252
);
253253
}
254254

255255
if (app()->template()) {
256-
$this->markup(
256+
return $this->markup(
257257
app()->template()->render($view, $data),
258258
);
259259
}

0 commit comments

Comments
 (0)