public function build($name, $overrides = [])
    {
        $attributes = $this->getAttributes($name, $overrides);
        $class = $this->getFixture($name)->name;

        // We'll pass off the process of creating the entity.
        // That way, folks can use different persistence layers.

        return $this->model->build($class, $attributes);
    }
public function build($name, $overrides = [])
    {
        $attributes = $this->getAttributes($name, $overrides);
        $class = $this->getFixture($name)->name;

        // We'll pass off the process of creating the entity.
        // That way, folks can use different persistence layers.

        return $this->model->build($class, $attributes);
    }
public function build ( $ name , $ overrides = [ ] ) { $ attributes = $ this -> getAttributes ( $ name , $ overrides ) ; $ class = $ this -> getFixture ( $ name ) -> name ; // We'll pass off the process of creating the entity. // That way, folks can use different persistence layers. return $ this -> model -> build ( $ class , $ attributes ) ; }
Build up an entity and populate it with dummy data.

@param  string $name
@param  array  $overrides
@return mixed
Build up an entity and populate it with dummy data .