src/SessionTrait.php
public function getFlash(string $key)
    {
        $key = $this->flashKey($key);

        $value = $this->get($key);

        $this->delete($key);

        return $value;
    }
public function getFlash(string $key)
    {
        $key = $this->flashKey($key);

        $value = $this->get($key);

        $this->delete($key);

        return $value;
    }
public function getFlash ( string $ key ) { $ key = $ this -> flashKey ( $ key ) ; $ value = $ this -> get ( $ key ) ; $ this -> delete ( $ key ) ; return $ value ; }
Retrieve a one-time value from the session data.

@param string $key The name of the flash value to retrieve

@return mixed
Retrieve a one - time value from the session data .