PHP code example of zachleigh / fake-better

1. Go to this page and download the library: Download zachleigh/fake-better 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/ */

    

zachleigh / fake-better example snippets


composer 

use Faker\Generator;
use FakeBetter\Providers\Copy;

$faker = new Generator();

$copyProvider = new Copy($faker);

$copyProvider->setCopyPath('path/to/copy/directory');

$faker->addProvider($copyProvider);

$faker->copy('path.to.copy');

FakeBetter\Laravel\ServiceProvider::class

php artisan vendor:publish --provider="FakeBetter\Laravel\ServiceProvider" --tag="config"

php artisan make:faker-copy my/original/copy/file

php artisan make:faker-provider CustomProvider