codetechnl / codetechfaker
A faker package for custom attributes. Product faker, brand faker.
1.0.3
2022-09-14 08:24 UTC
Requires
- fakerphp/faker: ^1.9
README
To-do
Helpers
Add the following line at the top of your faker file as a helper for code completion:
@property \CodeTechNL\Faker\FakerWrapper|\Faker\Generator $faker
<?php
namespace Database\Factories;
/**
* @property \CodeTechNL\Faker\FakerWrapper|\Faker\Generator $faker
*/
class ExampleClasss extends Factory
{
public function definition(){
return [
'product_title' => $this->faker->product()->random()
];
}
}
To-do
- Add installation guide
- Make tests
- Documentation how to add products