Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit f73d13e

Browse files
committed
Update SpladeMiddleware.php
1 parent 9c6c1ef commit f73d13e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Http/SpladeMiddleware.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public function handle(Request $request, Closure $next)
6969
]));
7070
}
7171

72+
if ($response instanceof JsonResponse) {
73+
return $response;
74+
}
75+
7276
if ($response->isSuccessful()) {
7377
$viewData = [
7478
'components' => static::renderedComponents(),

0 commit comments

Comments
 (0)