/**
  * Create the cache based session handler instance.
  *
  * @param string $driver
  * @return \Illuminate\Session\CacheBasedSessionHandler
  */
 protected function createCacheHandler($driver)
 {
     $handler = parent::createCacheHandler($driver);
     if (!$this->validateCacheHandler($driver, $handler)) {
         throw new \UnexpectedValueException('Wrong cache driver found');
     }
     return $handler;
 }