Skip to content

Commit a137b26

Browse files
committed
Add custom 404 page message
1 parent 67704f1 commit a137b26

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@extends('errors.minimal')
22

3-
@section('title', $messageContext ?? __('Not Found'))
3+
@section('title', __('Not Found'))
44
@section('code', '404')
5-
@section('message', $messageContext ?? __('Not Found'))
5+
6+
@if ($exception)
7+
@section('message', $exception->getMessage())
8+
@else
9+
@section('message', __('Not Found'))
10+
@endif

0 commit comments

Comments
 (0)