PHP code example of olegkravec / unrepeatable
1. Go to this page and download the library: Download olegkravec/unrepeatable 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/ */
olegkravec / unrepeatable example snippets
public function run()
{
if(!$this->isPreviouslyRunned()) // default check
User::factory()->count(1000)->create();
if(!$this->isPreviouslyRunned("10k-clients"))
Clients::factory()->count(10000)->create();
if(!$this->isPreviouslyRunned("100k-of-another-models"))
AnotherModel::factory()->count(100000)->create();
}