From 3ab9f65da5a1fe3e0f2e6466df4b2ce3fdfb0095 Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 20 Feb 2022 22:38:17 +1100 Subject: [PATCH] Updated error blade file Updated error blade file to show status code 404 if not set --- resources/views/errors/404.blade.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index f3ea8a5..e70002d 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,4 +1,10 @@ -@section('title') {{'Error'}} {{$status}} @endsection +@section('title') {{'Error'}} +@if(isset($status)) + {{$status}} +@else +

404

+@endif +@endsection @section('style')