Skip to content

Commit

Permalink
fixing migration not working in laravel app
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilee committed May 14, 2023
1 parent 4f0436c commit 46f00f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/factories/DistrictFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function definition()
return [
'code' => $this->faker->unique()->randomNumber(2),
'name' => $this->faker->unique()->words(asText: true),
'province_id' => \VietnameseAdministrativeUnits\Models\Province::factory(),
'province_id' => ProvinceFactory::new(),
];
}
}
2 changes: 1 addition & 1 deletion database/factories/WardFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function definition()
return [
'code' => $this->faker->unique()->randomNumber(2),
'name' => $this->faker->unique()->words(asText: true),
'district_id' => \VietnameseAdministrativeUnits\Models\District::factory(),
'district_id' => DistrictFactory::new(),
];
}
}

0 comments on commit 46f00f5

Please sign in to comment.