src/Container/Javascript.php
public function warning($body = '', $title = '')
    {
        $body = empty($body) ?  configurator()->get('toastr.warning.default') : $body;
        $this->append([static::TYPE_INLINE, sprintf('toastr.warning("%s", "%s");', $body, $title)]);
        return $this;
    }
public function warning($body = '', $title = '')
    {
        $body = empty($body) ?  configurator()->get('toastr.warning.default') : $body;
        $this->append([static::TYPE_INLINE, sprintf('toastr.warning("%s", "%s");', $body, $title)]);
        return $this;
    }
public function warning ( $ body = '' , $ title = '' ) { $ body = empty ( $ body ) ? configurator ( ) -> get ( 'toastr.warning.default' ) : $ body ; $ this -> append ( [ static :: TYPE_INLINE , sprintf ( 'toastr.warning("%s", "%s");' , $ body , $ title ) ] ) ; return $ this ; }
Add toastr warning message

@param $body
@param string $title
@return $this
Add toastr warning message