erp-backend/database/factories/SupplierFactory.php
2026-04-01 17:07:04 +08:00

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(),
];
}
}