$kind
$kind : string
The kind of attribute that will be generated.
This is the factory generator class.
The factory generator can be useful for setting up relationships between models. The factory generator will return the model id of the model you ask it to generate. Please note that class is not be considered part of the public api, and should only be used internally by Factory Muffin.
detect(string $kind, object|null $object = null, \Faker\Generator|null $faker = null) : \League\FactoryMuffin\Generators\Base
Detect the type of Generator we are processing.
string | $kind | The kind of attribute. |
object|null | $object | The model instance. |
\Faker\Generator|null | $faker | The faker instance. |