HasFactory
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.
static protected TFactory|null
newFactory()
Create a new factory instance for the model.