From 04d44d9bd7861ae236610e2a9d6529dafb075017 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 10 Feb 2018 17:58:11 -0600 Subject: [PATCH] Add SKIN_NAME to error message pages #187 --- app/Exceptions/Handler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index dfb8fd8b..2f35844a 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -134,7 +134,10 @@ class Handler extends ExceptionHandler if (view()->exists("errors::{$status}")) { #if (view()->exists('layouts' . config('phpvms.skin') .'.errors.' .$status)) { - return response()->view("errors::{$status}", ['exception' => $e], $status, $e->getHeaders()); + return response()->view("errors::{$status}", [ + 'exception' => $e, + 'SKIN_NAME' => config('phpvms.skin'), + ], $status, $e->getHeaders()); } else { return $this->convertExceptionToResponse($e); }