Reputation: 27301
In Chrome inspector when I hit a 404 I see:
Request URL:http://myapp.dev/doesnotexist
Request Method:GET
Status Code:404 Not Found
Remote Address:192.X.X.X:80
So far I've only been able to get the numeric code, "404" by using $exception->getStatusCode()
Is there a way to get the text description of "Not Found" in PHP (or Laravel)?
Upvotes: 2
Views: 1016
Reputation: 3988
If You want to display Custome 404 Error page, you can create 404.blade.php file in views/errors
directory.
Upvotes: 0
Reputation: 119
have you changed your app/config/app.php to:
'debug' => env('APP_DEBUG', true),
Upvotes: 1