Skip to content

Commit

Permalink
factory
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Sep 9, 2024
1 parent 5efa2ae commit 0dc3f5b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions database/factories/OrganisationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public function definition()
'role' => fake()->jobTitle(),
];

$contactPersonInTeams = [
'first_name' => fake()->firstName(),
'last_name' => fake()->lastName(),
'email' => fake()->unique()->safeEmail(),
'phone' => fake()->phoneNumber(),
'role' => fake()->jobTitle(),
];

$otherInfo = [
'facebook' => fake()->boolean() ? 'https://www.facebook.com/#link' : null,
'website' => fake()->boolean() ? fake()->url() : null,
Expand All @@ -60,6 +68,7 @@ public function definition()
'description' => fake()->sentence('10'),
'address' => fake()->address(),
'contact_person' => $contactPerson,
'contact_person_in_teams' => $contactPersonInTeams,
'other_information' => $otherInfo,
'has_branches' => fake()->boolean(),
'city_id' => $city->id,
Expand Down

0 comments on commit 0dc3f5b

Please sign in to comment.