src/RedirectResponse.php
public function withStatus($message, $type = 'success')
    {
        $status = [
            'message' => $message,
            'type' => $type,
        ];

        $this->with('status', $status);

        return $this;
    }
public function withStatus($message, $type = 'success')
    {
        $status = [
            'message' => $message,
            'type' => $type,
        ];

        $this->with('status', $status);

        return $this;
    }
public function withStatus ( $ message , $ type = 'success' ) { $ status = [ 'message' => $ message , 'type' => $ type , ] ; $ this -> with ( 'status' , $ status ) ; return $ this ; }
Flash a container of status to the session.

@param  string $message
@param  string $type
@return $this
Flash a container of status to the session .