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

33 lines
790 B
PHP

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