File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ protected function evaluateSiteStates(Collection $states): Collection
6161 ? Site::get ($ siteState ['site ' ])
6262 : Site::get ($ this ->getSitesFromContentModel ()->first ());
6363
64- $ this ->faker = Container:: getInstance ()-> makeWith (Generator::class, [ ' locale ' => $ site ->locale ()] );
64+ $ this ->faker = \ Faker \Factory:: create ( $ site ->locale ());
6565
6666 $ siteState = ! isset ($ siteState ['isRandomSite ' ])
6767 ? $ states ->get ($ siteState ['index ' ])
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ protected function withFaker(): Generator
310310 ? Site::get ($ this ->getSitesFromContentModel ()->first ())
311311 : Site::default ();
312312
313- return Container:: getInstance ()-> makeWith (Generator::class, [ ' locale ' => $ site ->locale ()] );
313+ return \ Faker \Factory:: create ( $ site ->locale ());
314314 }
315315
316316 public function modelName (): string
You can’t perform that action at this time.
0 commit comments