trait HasFactory (View source)

Methods

static TFactory
factory($count = null, $state = [])

Get a new factory instance for the model.

static TFactory|null
newFactory()

Create a new factory instance for the model.

Details

static TFactory factory($count = null, $state = [])

Get a new factory instance for the model.

Parameters

$count
$state

Return Value

TFactory

static protected TFactory|null newFactory()

Create a new factory instance for the model.

Return Value

TFactory|null