getStatusCode() == 404) { if (!\App\Module\Base::leftExists($request->getRequestUri(), '/api')) { return response()->view('main', ['version' => \App\Module\Base::getVersion()]); } } } return parent::render($request, $exception); } }