October\Rain\Database\Factories\Factory
Overview
Factory umbrella class
Extends
- Illuminate\Database\Eloquent\Factories\Factory
Public Properties
There are no public properties in the class.
Show inherited public properties
Inherited Public Properties
- $namespace - The default namespace where factories reside. (defined in Illuminate\Database\Eloquent\Factories\Factory)
Protected Properties
There are no protected properties in the class.
Show inherited protected properties
Inherited Protected Properties
- $model - The name of the factory's corresponding model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $count - The number of models that should be generated. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $states - The state transformations that will be applied to the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $has - The parent relationships that will be applied to the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $for - The child relationships that will be applied to the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $recycle - The model instances to always use when creating relationships. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $afterMaking - The "after making" callbacks that will be applied to the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $afterCreating - The "after creating" callbacks that will be applied to the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $expandRelationships - Whether relationships should not be automatically created. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $excludeRelationships - The relationships that should not be automatically created. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $connection - The name of the database connection that will be used to create the models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $faker - The current Faker instance. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $modelNameResolver - class-string
. (defined in Illuminate\Database\Eloquent\Factories\Factory) - $modelNameResolvers - The default model name resolvers. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $factoryNameResolver - The factory name resolver. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $expandRelationshipsByDefault - Whether to expand relationships by default. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $cachedModelAttributes - The cached model class names resolved from attributes. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- $macros - The registered string macros. (defined in Illuminate\Database\Eloquent\Factories\Factory)
Public Methods
Inherited Public Methods
- __call() - Proxy dynamic factory methods onto their proper methods. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- __callStatic() - Dynamically handle calls to the class. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- __construct() - Create a new factory instance. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- afterCreating() - Add a new "after creating" callback to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- afterMaking() - Add a new "after making" callback to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- configure() - Configure the factory. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- connection() - Specify the database connection that should be used to generate models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- count() - Specify how many models should be generated. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- create() - Create a collection of models and persist them to the database. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createMany() - Create a collection of models and persist them to the database. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createManyQuietly() - Create a collection of models and persist them to the database without dispatching any model events. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createOne() - Create a single model and persist it to the database. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createOneQuietly() - Create a single model and persist it to the database without dispatching any model events. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createQuietly() - Create a collection of models and persist them to the database without dispatching any model events. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- crossJoinSequence() - Add a new cross joined sequenced state transformation to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- definition() - Define the model's default state. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- dontExpandRelationshipsByDefault() - Specify that relationships should not create parent relationships by default. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- expandRelationshipsByDefault() - Specify that relationships should create parent relationships by default. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- factoryForModel() - Get a new factory instance for the given model name. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- flushMacros() - Flush the existing macros. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- flushState() - Flush the factory's global state. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- for() - Define a parent relationship for the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- forEachSequence() - Add a new sequenced state transformation to the model definition and update the pending creation count to the size of the sequence. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- getConnectionName() - Get the name of the database connection that is used to generate models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- getRandomRecycledModel() - Retrieve a random model of a given type from previously provided models to recycle. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- guessFactoryNamesUsing() - Specify the callback that should be invoked to guess factory names based on dynamic relationship names. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- guessModelNamesUsing() - Specify the callback that should be invoked to guess model names based on factory names. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- has() - Define a child relationship for the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- hasAttached() - Define an attached relationship for the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- hasMacro() - Checks if macro is registered. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- insert() - Insert the model records in bulk. No model events are emitted. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- lazy() - Create a callback that persists a model in the database when invoked. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- macro() - Register a custom macro. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- macroCall() - Dynamically handle calls to the class. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- make() - Create a collection of models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- makeMany() - Create a collection of models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- makeOne() - Make a single instance of the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- mixin() - Mix another object into the class. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- modelName() - Get the name of the model that is generated by the factory. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- new() - Get a new factory instance for the given attributes. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- newModel() - Get a new model instance. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- prependState() - Prepend a new state transformation to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- raw() - Get the raw attributes generated by the factory. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- recycle() - Provide model instances to use instead of any nested factory calls when creating relationships. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- resolveFactoryName() - Get the factory name for the given model name. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- sequence() - Add a new sequenced state transformation to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- set() - Set a single model attribute. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- state() - Add a new state transformation to the model definition. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- times() - Get a new factory instance for the given number of models. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- unless() - Apply the callback if the given "value" is (or resolves to) falsy. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- useNamespace() - Specify the default namespace that contains the application's model factories. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- when() - Apply the callback if the given "value" is (or resolves to) truthy. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- withoutAfterCreating() - Remove the "after creating" callbacks from the factory. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- withoutAfterMaking() - Remove the "after making" callbacks from the factory. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- withoutParents() - Indicate that related parent models should not be created. (defined in Illuminate\Database\Eloquent\Factories\Factory)
Protected Methods
Show inherited protected methods
Inherited Protected Methods
- appNamespace() - Get the application namespace for the application. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- callAfterCreating() - Call the "after creating" callbacks for the given model instances. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- callAfterMaking() - Call the "after making" callbacks for the given model instances. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- createChildren() - Create the children for the given model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- expandAttributes() - Expand all attributes to their underlying values. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- forwardCallTo() - Forward a method call to the given object. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- forwardDecoratedCallTo() - Forward a method call to the given object, returning $this if the forwarded call returned itself. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- getExpandedAttributes() - Get a raw attributes array for the model. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- getRawAttributes() - Get the raw attributes for the model as an array. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- guessRelationship() - Attempt to guess the relationship name for a "has" relationship. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- makeInstance() - Make an instance of the model with the given attributes. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- newInstance() - Create a new instance of the factory builder with the given mutated properties. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- parentResolvers() - Create the parent relationship resolvers (as deferred Closures). (defined in Illuminate\Database\Eloquent\Factories\Factory)
- store() - Set the connection name on the results and store them. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- throwBadMethodCallException() - Throw a bad method call exception for the given method. (defined in Illuminate\Database\Eloquent\Factories\Factory)
- withFaker() - Get a new Faker instance. (defined in Illuminate\Database\Eloquent\Factories\Factory)