【laravel5.4】自定义404、503等页面
1、处理自定义错误或不存在页面:生产环境一定要关闭debug模式。

public function render($request, Exception $exception) { if ($exception) { return response()->view('error.'.$exception->getStatusCode(), [],$exception->getStatusCode()); } return parent::render($request, $exception); }
浙公网安备 33010602011771号