28 lines
701 B
PHP
28 lines
701 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Supplier>
|
|
*/
|
|
class SupplierFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'code' => 'SUP' . $this->faker->randomNumber(6),
|
|
'name' => $this->faker->company,
|
|
'contact' => $this->faker->name,
|
|
'phone' => $this->faker->phoneNumber,
|
|
'address' => $this->faker->address,
|
|
'remark' => $this->faker->sentence(),
|
|
];
|
|
}
|
|
} |