32 lines
900 B
PHP
32 lines
900 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Address>
|
|
*/
|
|
class AddressFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name,
|
|
'full_address' => $this->faker->address,
|
|
'phone' => $this->faker->phoneNumber,
|
|
'prov_id' => $this->faker->numberBetween(1, 34),
|
|
'city_id' => $this->faker->numberBetween(1, 100),
|
|
'district_id' => $this->faker->numberBetween(1, 100),
|
|
'postal_code' => $this->faker->postcode,
|
|
'user_id' => $this->faker->numberBetween(1, 10),
|
|
'is_default' => $this->faker->boolean,
|
|
];
|
|
}
|
|
}
|