public function with($key, $value)
    {
        $this->hasData = true;

        $this->session->create($key, $value);

        return $this;
    }
public function with($key, $value)
    {
        $this->hasData = true;

        $this->session->create($key, $value);

        return $this;
    }
public function with ( $ key , $ value ) { $ this -> hasData = true ; $ this -> session -> create ( $ key , $ value ) ; return $ this ; }
To store data in a session

@param string $key
@param mixed $value

@return $this
To store data in a session