$factories : array
The array of factories.
This is the factory class.
This class is not intended to be used directly, but should be used through the provided facade. The only time where you should be directly calling methods here should be when you're using method chaining after initially using the facade.
seed(integer $times, string $model, array $attr = array()) : array
Returns multiple versions of an object.
These objects are generated by the create function, so are saved to the database.
The number of models to create.
The model class name.
The model attributes.
loadFactories(string|array<mixed,string> $paths) : $this
Load the specified factories.
This method expects either a single path to a directory containing php files, or an array of directory paths, and will include_once every file. These files should contain factory definitions for your models.
The directory path(s) to load.