Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function loadFactoriesFromContainers() |
||
22 | { |
||
23 | $newFactoriesPath = '/app/Ship/Engine/Loaders/FactoryMixer'; |
||
24 | |||
25 | App::singleton(Factory::class, function ($app) use ($newFactoriesPath) { |
||
26 | $faker = $app->make(Generator::class); |
||
27 | |||
28 | return Factory::construct($faker, base_path() . $newFactoriesPath); |
||
29 | }); |
||
30 | } |
||
31 | |||
33 |