protected function defineRoutes()
    {
        if (!$this->app->routesAreCached()) {
            $router = app('router');
            $this->defineWebRoutes($router);
            $this->defineApiRoutes($router);
        }
    }