October\Rain\Database\Factories\HasFactory

Overview

HasFactory implements factory support for a model


Public Methods

public static factory()

public static factory(
    callable|array|int|null $count = null,
    callable|array $state = []
): Illuminate\Database\Eloquent\Factories\Factory<static> 

factory gets a new factory instance for the model.

Protected Methods

protected static factoryForModel()

protected static factoryForModel($modelName): void

factoryForModel guesses a factory class based on the model class

protected static newFactory()

protected static newFactory(

): Illuminate\Database\Eloquent\Factories\Factory<static> 

newFactory creates a new factory instance for the model.