public function of($class, $name = 'default')
    {
        return new FactoryBuilder(
            $class, $name, $this->definitions, $this->states,
            $this->afterMaking, $this->afterCreating, $this->faker
        );
    }
public function of($class, $name = 'default')
    {
        return new FactoryBuilder(
            $class, $name, $this->definitions, $this->states,
            $this->afterMaking, $this->afterCreating, $this->faker
        );
    }
public function of ( $ class , $ name = 'default' ) { return new FactoryBuilder ( $ class , $ name , $ this -> definitions , $ this -> states , $ this -> afterMaking , $ this -> afterCreating , $ this -> faker ) ; }
Create a builder for the given model.

@param  string  $class
@param  string  $name
@return \Illuminate\Database\Eloquent\FactoryBuilder
Create a builder for the given model .