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