for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Database\Factories;
use App\Models\Region;
use Illuminate\Database\Eloquent\Factories\Factory;
class RegionFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Region::class;
* Define the model's default state.
* @return array
public function definition()
return [
'name' => [
'en' => $this->faker->sentence($nbWords = 2, $variableNbWords = true),
'it' => $this->faker->sentence($nbWords = 2, $variableNbWords = true),
],
'country_id' => $this->faker->numberBetween($min = 1, $max = 250),
'timezone' => '+1:00',
];
}