PHP code example of codetechnl / codetechfaker
1. Go to this page and download the library: Download codetechnl/codetechfaker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codetechnl / codetechfaker example snippets
namespace Database\Factories;
/**
* @property \CodeTechNL\Faker\FakerWrapper|\Faker\Generator $faker
*/
class ExampleClasss extends Factory
{
public function definition(){
return [
'product_title' => $this->faker->product()->random()
];
}
}