factory.stub
TLDR
This file provides a stub for factory classes in the Illuminate\Database\Eloquent\Factories namespace.
Classes
{{ factory }}Factory
This class extends the Illuminate\Database\Eloquent\Factories\Factory
class and provides a stub for factory classes in the {{ factoryNamespace }}
namespace. It is used to define the model's default state in the definition
method.
<?php
namespace {{ factoryNamespace }};
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\{{ namespacedModel }}>
*/
class {{ factory }}Factory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
];
}
}