src/Fabricate.php
public static function create($modelName, $recordCount = 1, $callback = null)
    {
        $attributes = self::attributes_for($modelName, $recordCount, $callback);
        $instance = self::getInstance();
        $definition = $instance->definition($recordCount, $callback);
        $recordCount = $instance->recordCount($recordCount);
        return $instance->factory->create($attributes, $recordCount, $definition);
    }
public static function create($modelName, $recordCount = 1, $callback = null)
    {
        $attributes = self::attributes_for($modelName, $recordCount, $callback);
        $instance = self::getInstance();
        $definition = $instance->definition($recordCount, $callback);
        $recordCount = $instance->recordCount($recordCount);
        return $instance->factory->create($attributes, $recordCount, $definition);
    }
public static function create ( $ modelName , $ recordCount = 1 , $ callback = null ) { $ attributes = self :: attributes_for ( $ modelName , $ recordCount , $ callback ) ; $ instance = self :: getInstance ( ) ; $ definition = $ instance -> definition ( $ recordCount , $ callback ) ; $ recordCount = $ instance -> recordCount ( $ recordCount ) ; return $ instance -> factory -> create ( $ attributes , $ recordCount , $ definition ) ; }
Create and Save fablicated model data to database.

@param string $modelName name of model or defined
@param mixed $recordCount $recordCount number for creation or $callback if not require $recordCount
@param mixed $callback callback can chenge fablicated data if you want to overwrite
@return mixed results of creation
Create and Save fablicated model data to database .