MIF_E31222707/Modules/People/Database/factories/CustomerFactory.php

33 lines
790 B
PHP

<?php
namespace Modules\People\Database\factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class CustomerFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = \Modules\People\Entities\Customer::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'customer_name' => $this->faker->name(),
'customer_email' => $this->faker->safeEmail(),
'customer_phone' => $this->faker->phoneNumber(),
'city' => $this->faker->city(),
'country' => $this->faker->country(),
'address' => $this->faker->streetAddress()
];
}
}