protected function assertRouteCachingValid()
{
if ($this->App->routesAreCached() && !$this->Config->get('devise.routes.enabled')) {
throw new \Exception('Devise will not work proprely when Laravel routes are cached and DEVISE_CACHE_ENABLED=false. For more information on how to address this error please visit, http://devisephp.com/docs/common-errors#route-caching');
}
}