public function get($key, $defaultValue = array())
    {
        $this->populateFlash($key);

        if ($this->has($key)) {
            return $this->data[$key];
        }

        return $defaultValue;
    }
public function get($key, $defaultValue = array())
    {
        $this->populateFlash($key);

        if ($this->has($key)) {
            return $this->data[$key];
        }

        return $defaultValue;
    }
public function get ( $ key , $ defaultValue = array ( ) ) { $ this -> populateFlash ( $ key ) ; if ( $ this -> has ( $ key ) ) { return $ this -> data [ $ key ] ; } return $ defaultValue ; }
Get object from flash bag.

@param string $key
@param mixed  $defaultValue

@return mixed
Get object from flash bag .