src/Http/Cookie/Drivers/CookieDriver.php
/**
	 * Gets the value of the specified key and then removes it from the session. If the key does not exist, returns
	 * the specified default value (or null).
	 *
	 * @param string $key
	 * @param mixed $default
	 *
	 * @return mixed
	 */
Gets the value of the specified key and then removes it from the session. If the key does not exist, returns
the specified default value (or null).

@param string $key
@param mixed $default

@return mixed
Gets the value of the specified key and then removes it from the session . If the key does not exist returns the specified default value ( or null ) . @param string $key @param mixed $default @return mixed
public function pull($key, $default = null) {
		if ($this->exists($key)) {
			$value = $this->get($key);
			$this->forget($key);
			return $value;
		}
		return $default;
	}
public function pull ( $ key , $ default = null ) { if ( $ this -> exists ( $ key ) ) { $ value = $ this -> get ( $ key ) ; $ this -> forget ( $ key ) ; return $ value ; } return $ default ; }
Gets the value of the specified key and then removes it from the session.
Gets the value of the specified key and then removes it from the session .
// Get the value // Delete the key from the session // Return the value