From d95f86581671a1f4d376b13893cf0e2772fb519c Mon Sep 17 00:00:00 2001
From: Sobhan <44964722+sobhan-m94@users.noreply.github.com>
Date: Fri, 14 Apr 2023 17:31:33 +0330
Subject: [PATCH] Add headers (#46780)

* add headers

* Update Application.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
---
 src/Illuminate/Foundation/Application.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php
index 799a446de548..5f696d944553 100755
--- a/src/Illuminate/Foundation/Application.php
+++ b/src/Illuminate/Foundation/Application.php
@@ -1218,7 +1218,7 @@ public function isDownForMaintenance()
     public function abort($code, $message = '', array $headers = [])
     {
         if ($code == 404) {
-            throw new NotFoundHttpException($message);
+            throw new NotFoundHttpException($message, null, 0, $headers);
         }
 
         throw new HttpException($code, $message, null, $headers);