$kind
$kind : string
The kind of attribute that will be generated.
This is the closure generator class.
The closure generator can be used if you want a more custom solution. Whatever you return from the closure you write will be set as the attribute. 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. |