Mass changes
This commit is contained in:
@@ -17,7 +17,8 @@ class AddressTypeFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'name' => $this->faker->randomElement(['Home', 'Work', 'Other']),
|
||||
'description' => $this->faker->optional()->sentence(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Database\Factories\Person;
|
||||
|
||||
use App\Models\Person\AddressType;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -17,7 +19,10 @@ class PersonAddressFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'address' => $this->faker->streetAddress(),
|
||||
'country' => 'SI',
|
||||
'type_id' => AddressType::factory(),
|
||||
'user_id' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
use App\Models\Person\PersonGroup;
|
||||
use App\Models\Person\PersonType;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -29,6 +30,7 @@ public function definition(): array
|
||||
'description' => $this->faker->optional()->sentence(),
|
||||
'group_id' => PersonGroup::factory(),
|
||||
'type_id' => PersonType::factory(),
|
||||
'user_id' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Database\Factories\Person;
|
||||
|
||||
use App\Models\Person\PhoneType;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
@@ -17,7 +19,9 @@ class PersonPhoneFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'nu' => $this->faker->numerify('06########'),
|
||||
'type_id' => PhoneType::factory(),
|
||||
'user_id' => User::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ class PhoneTypeFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
'name' => $this->faker->randomElement(['GSM', 'Home', 'Work']),
|
||||
'description' => $this->faker->optional()->sentence(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user