From 5322a4c3fd3d60222df9da349452e792c03e1080 Mon Sep 17 00:00:00 2001 From: Cesar Date: Sat, 4 Jan 2025 16:10:14 +0100 Subject: [PATCH] fix view response --- src/Responses/ViewResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Responses/ViewResponse.php b/src/Responses/ViewResponse.php index ab6f7b5..2fa3582 100644 --- a/src/Responses/ViewResponse.php +++ b/src/Responses/ViewResponse.php @@ -6,7 +6,7 @@ class ViewResponse implements ResponseContract { public function __invoke($options = []) { - return view( + return response()->view( $options['view'] ?? null, $options['data'] ?? [] );