Cartalyst\Sentinel\Cookies\CookieInterface::put PHP Метод

put() публичный Метод

Put a value in the Sentinel cookie (to be stored until it's cleared).
public put ( mixed $value ) : void
$value mixed
Результат void
    public function put($value);

Usage Example

 /**
  * {@inheritDoc}
  */
 public function persist(PersistableInterface $persistable, $remember = false)
 {
     if ($this->single) {
         $this->flush($persistable);
     }
     $code = $persistable->generatePersistenceCode();
     $this->session->put($code);
     if ($remember === true) {
         $this->cookie->put($code);
     }
     $persistence = $this->createModel();
     $persistence->{$persistable->getPersistableKey()} = $persistable->getPersistableId();
     $persistence->code = $code;
     return $persistence->save();
 }
All Usage Examples Of Cartalyst\Sentinel\Cookies\CookieInterface::put
CookieInterface