Skip to content

Commit 540555c

Browse files
author
James Kingsley
authored
Fix reference to getMessage in exception
1 parent e793353 commit 540555c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The `abort` helper will immediately raise an exception which will be rendered by
146146

147147
Laravel makes it easy to display custom error pages for various HTTP status codes. For example, if you wish to customize the error page for 404 HTTP status codes, create a `resources/views/errors/404.blade.php`. This file will be served on all 404 errors generated by your application. The views within this directory should be named to match the HTTP status code they correspond to. The `HttpException` instance raised by the `abort` function will be passed to the view as an `$exception` variable:
148148

149-
<h2>{{ $exception->getMessage }}</h2>
149+
<h2>{{ $exception->getMessage() }}</h2>
150150

151151
<a name="logging"></a>
152152
## Logging

0 commit comments

Comments
 (0)