Skip to content

Commit 140c153

Browse files
committed
Add production check
1 parent 621925f commit 140c153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NotFoundWhenProduction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class NotFoundWhenProduction
1313
*/
1414
public function handle(Request $request, Closure $next): Response
1515
{
16-
if (app()->environment('prod')) {
16+
if (app()->environment('prod', 'production')) {
1717
return response()->json([
1818
'status' => 'forbidden',
1919
'status_code' => Response::HTTP_FORBIDDEN

0 commit comments

Comments
 (0)