When using the following Laravel helper function in a view:
abort( 404 );
Instead of displaying the default Laravel 404 error page, I'm getting:
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
Stack Trace:
public function abort($code, $message = '', array $headers = [])
{
if ($code == 404) {
throw new NotFoundHttpException($message);
}
throw new HttpException($code, $message, null, $headers);
}
How can I get abort( 404 ); to display the stock Laravel 404 error page?