Skip to content

Commit

Permalink
Merge pull request #40 from bildvitta/develop
Browse files Browse the repository at this point in the history
Merge into main from develop
  • Loading branch information
paulodavanco authored Sep 5, 2022
2 parents 7418f73 + c04c245 commit 80d6101
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Factories/AccessoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function definition(): array
'name' => fake()->words(5, true),
'description' => fake()->text,
'category_id' => Category::inRandomOrder()->first(),
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/BuyingOptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function definition(): array
'when_flow_validated' => fake()->randomKey(BuyingOption::WHEN_FLOW_VALIDATED_LIST),
'when_make_sale' => fake()->randomKey(BuyingOption::WHEN_MAKE_SALE_LIST),
'when_reserve_unit' => fake()->randomKey(BuyingOption::WHEN_RESERVE_UNIT_LIST),
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/CategoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function definition(): array
'uuid' => fake()->uuid(),
'name' => fake()->words(5, true),
'description' => fake()->text,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/CharacteristicFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function definition(): array
'name' => fake()->words(5, true),
'description' => fake()->text,
'icon' => 'https://placeimg.com/640/480/any?' . fake()->uuid,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/InsuranceCompanyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function definition(): array
'document' => fake()->cnpj(false),
'susep' => fake()->numerify('#####'),
'is_active' => fake()->boolean(),
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/ProposalModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function definition(): array
return [
'uuid' => fake()->uuid(),
'name' => fake()->words(5, true),
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id
];
}
}
2 changes: 1 addition & 1 deletion src/Factories/RealEstateDevelopmentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function definition(): array
'registry_office' => fake()->words(5, true),
'state' => fake()->state,
'street_number' => fake()->numberBetween(1, 300),
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()->id,
'hub_company_id' => config('sp-produto.model_company')::inRandomOrder()->first()?->id,
'external_code' => fake()->unique()->numberBetween(1, 300),
'external_num_code' => fake()->numberBetween(50, 300),
'external_company_code' => fake()->numberBetween(2, 300),
Expand Down

0 comments on commit 80d6101

Please sign in to comment.