Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function render($request, Exception $exception)
- {
- return parent::render($request, $exception);
- }
- ################################################################
- ################# Ganti dengan ini #############################
- ################################################################
- public function render($request, Exception $e)
- {
- if($this->isHttpException($e))
- {
- switch (intval($e->getStatusCode())) {
- // not found
- case 404:
- return redirect()->route('home');
- break;
- default:
- return $this->renderHttpException($e);
- break;
- }
- }
- else
- {
- return parent::render($request, $e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement