public function build($type, array $attributes)
    {
        if ( ! class_exists($type)) {
            throw new TestDummyException("The {$type} model was not found.");
        }

        return $this->fill($type, $attributes);
    }
public function build($type, array $attributes)
    {
        if ( ! class_exists($type)) {
            throw new TestDummyException("The {$type} model was not found.");
        }

        return $this->fill($type, $attributes);
    }
public function build ( $ type , array $ attributes ) { if ( ! class_exists ( $ type ) ) { throw new TestDummyException ( "The {$type} model was not found." ) ; } return $ this -> fill ( $ type , $ attributes ) ; }
Build the entity with attributes.

@param  string $type
@param  array  $attributes
@throws TestDummyException
@return Eloquent
Build the entity with attributes .