src/Components/Traits/FluentComponentTrait.php
/**
     * Set or append a value.
     *
     * @param string  $key
     * @param mixed   $value
     * @param bool    $shouldAppend
     */
Set or append a value.
Set or append a value .
public function add($key, $value, $shouldAppend = false)
    {
        return $shouldAppend ?
            $this->append($key, $value) :
            $this->set($key, $value);
    }
public function add ( $ key , $ value , $ shouldAppend = false ) { return $ shouldAppend ? $ this -> append ( $ key , $ value ) : $ this -> set ( $ key , $ value ) ; }
Set or append a value.
Set or append a value .