/**
  * {@inheritdoc}
  */
 public function close()
 {
     $this->store->save();
     return $this;
 }
Exemple #2
0
 /**
  * Force the session to be saved and closed.
  * 
  * This method is generally not required for real sessions as
  * the session will be automatically saved at the end of
  * code execution.
  *
  * @static 
  */
 public static function save()
 {
     return \Illuminate\Session\Store::save();
 }
 /**
  * Recent / Providers
  * @param $provider
  * @param $data
  */
 public function setAuthData($provider, $data)
 {
     $this->session->set('__sp_auth.r', $provider);
     $this->session->set('__sp_auth.p.' . $provider, array_merge(['provider' => $provider], $data));
     $this->session->save();
 }