*/ class SupplierFactory extends Factory { /** * Define the model's default state. * * @return array */ 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(), ]; } }