29 lines
737 B
PHP
29 lines
737 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Customer>
|
|
*/
|
|
class CustomerFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'firstname' => $this->faker->name(),
|
|
'lastname' => $this->faker->name(),
|
|
'phone' => $this->faker->unique()->phoneNumber(),
|
|
'email' => $this->faker->unique()->email(),
|
|
'email_verify' => now(),
|
|
'password' => '$2y$10$2Tcx805kaC.Ug/IUD34pW.R.D0l0Gpy.IEeXkrjhBr1uu048pEFp.'
|
|
];
|
|
}
|
|
}
|