Skip to content

Commit 077ca08

Browse files
committed
Document publishing error views
1 parent ff2b257 commit 077ca08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

errors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,7 @@ The `abort` helper will immediately raise an exception which will be rendered by
155155
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:
156156

157157
<h2>{{ $exception->getMessage() }}</h2>
158+
159+
You may also publish the error pages which ship with Laravel and customize them to your liking:
160+
161+
php artisan vendor:publish --tag=laravel-errors

0 commit comments

Comments
 (0)