Files
portal-api/database/factories/CustomerFactory.php
T
2025-07-24 16:18:27 +07:00

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.'
];
}
}