src/FabricateContext.php
public function traits($name)
    {
        if (is_array($name)) {
            $this->traits = array_merge($this->traits, $name);
        } else {
            $this->traits[] = $name;
        }
    }
public function traits($name)
    {
        if (is_array($name)) {
            $this->traits = array_merge($this->traits, $name);
        } else {
            $this->traits[] = $name;
        }
    }
public function traits ( $ name ) { if ( is_array ( $ name ) ) { $ this -> traits = array_merge ( $ this -> traits , $ name ) ; } else { $ this -> traits [ ] = $ name ; } }
Add apply trait in the scope.

@param string|array $name use trait name(s)
@return void
Add apply trait in the scope .