public function addSuccessMessage($message, $params = array())
    {
        $message = $this->trans($message, $params);
        static::$messages[$message] = array(
            'type' => 'success',
            'bootstrapType' => 'success',
            'message' => $message
        );
    }
public function addSuccessMessage($message, $params = array())
    {
        $message = $this->trans($message, $params);
        static::$messages[$message] = array(
            'type' => 'success',
            'bootstrapType' => 'success',
            'message' => $message
        );
    }
public function addSuccessMessage ( $ message , $ params = array ( ) ) { $ message = $ this -> trans ( $ message , $ params ) ; static :: $ messages [ $ message ] = array ( 'type' => 'success' , 'bootstrapType' => 'success' , 'message' => $ message ) ; }
add a success message to the api call
@param $message
add a success message to the api call