codetechnl/codetechfaker

A faker package for custom attributes. Product faker, brand faker.

1.0.3 2022-09-14 08:24 UTC

This package is auto-updated.

Last update: 2024-09-14 12:46:51 UTC


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