PHP code example of johannesclimacus / artisan-factory

1. Go to this page and download the library: Download johannesclimacus/artisan-factory 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/ */

    

johannesclimacus / artisan-factory example snippets

bash
php artisan factory:create User
bash
php artisan factory:create User --count=5
bash
php artisan factory:create User --state=unverified
bash
php artisan factory:create User --details
bash
php artisan factory:create HouseholdMessage --for="sender=User:1"
bash
php artisan vendor:publish --tag=factory-create-config