*/ class ContactFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Contact::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'nick' => mb_strtolower($this->faker->firstName), 'name' => $this->faker->name(), 'homepage' => $this->faker->url, 'twitter' => mb_strtolower($this->faker->firstName), 'facebook' => $this->faker->randomNumber(5), 'created_at' => Carbon::now()->toDateTimeString(), 'updated_at' => Carbon::now()->toDateTimeString(), ]; } }