for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Sfneal\Testing\Models\People;
class PeopleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = People::class;
* Define the model's default state.
* @return array
public function definition(): array
return [
'name_first' => $this->faker->firstName,
'name_last' => $this->faker->lastName,
'email' => $this->faker->safeEmail,
'age' => $this->faker->numberBetween(21, 70),
];
}