38 行
958 B
PHP
38 行
958 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Child;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ChildFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Child::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'email' => $this->faker->email,
|
|
'tel' => $this->faker->phoneNumber,
|
|
'tel_verified_at' => $this->faker->dateTime,
|
|
'last_name' => $this->faker->lastName,
|
|
'first_name' => $this->faker->firstName,
|
|
'img' => $this->faker->imageUrl,
|
|
'company' => $this->faker->company,
|
|
'remember_token' => $this->faker->macPlatformToken,
|
|
'created_at' => $this->faker->dateTime,
|
|
'updated_at' => $this->faker->dateTime,
|
|
];
|
|
}
|
|
}
|