Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.
<?php
namespace Faker\Test\Provider\ja_JP;
use Faker\Generator;
use Faker\Provider\ja_JP\PhoneNumber;
use PHPUnit\Framework\TestCase;
class PhoneNumberTest extends TestCase
{
public function testPhoneNumber()
{
$faker = new Generator();
$faker->addProvider(new PhoneNumber($faker));
for ($i = 0; $i < 10; $i++) {
$phoneNumber = $faker->phoneNumber;
$this->assertNotEmpty($phoneNumber);
$this->assertRegExp('/^0\d{1,4}-\d{1,4}-\d{3,4}$/', $phoneNumber);
}
}
}