PHP code example of wadakatu / laravel-factory-refactor
1. Go to this page and download the library: Download wadakatu/laravel-factory-refactor 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/ */
wadakatu / laravel-factory-refactor example snippets
t
factory(User::class)->make();
factory(App\Models\User::class)->make();
factory(User::class, 10)->make();
factory(App\Models\User::class, 10)->make();
factory($model)->make();
factory(User::class, $count['user'])->make();
t
User::factory()->make();
App\Models\User::factory()->make();
User::factory()->count(10)->make();
App\Models\User::factory()->count(10)->make();
$model::factory()->make();
User::factory()->count($count['user'])->make();