Searching backend

This commit is contained in:
Peter Papp
2021-04-22 09:33:52 +02:00
parent 5b70066900
commit 73861f814c
8 changed files with 166 additions and 27 deletions

View File

@@ -22,21 +22,21 @@ class ClientFactory extends Factory
public function definition()
{
return [
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'name' => $this->faker->company,
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'name' => $this->faker->company,
'email' => $this->faker->email,
'phone_number' => $this->faker->phoneNumber,
'address' => $this->faker->address,
'city' => $this->faker->city,
'postal_code' => $this->faker->postcode,
'country' => $this->faker->randomElement(
'address' => $this->faker->address,
'city' => $this->faker->city,
'postal_code' => $this->faker->postcode,
'country' => $this->faker->randomElement(
['SK', 'CZ', 'DE', 'FR']
),
'ico' => $this->faker->numberBetween(11111111, 99999999),
'dic' => $this->faker->numberBetween(11111111, 99999999),
'ic_dph' => 'CZ' . $this->faker->numberBetween(1111111111, 9999999999),
'created_at' => $this->faker->dateTimeBetween(
'ico' => $this->faker->numberBetween(11111111, 99999999),
'dic' => $this->faker->numberBetween(11111111, 99999999),
'ic_dph' => 'CZ' . $this->faker->numberBetween(1111111111, 9999999999),
'created_at' => $this->faker->dateTimeBetween(
$startDate = '-6 months', $endDate = 'now', $timezone = null
),
];