HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/brameda/brameda.nl/app/Komma/Shop/Factories/PropertyFactory.php
<?php
/*
|--------------------------------------------------------------------------
| Property Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories.
| Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
*/
$factory->define(\App\Komma\Shop\Properties\Models\PropertyKeyTranslation::class, function (Faker\Generator $faker) {
    $faker->addProvider(\App\Komma\Shop\Factories\Fakers\PropertyFaker::class);

    return [
        'value' => $propertyData = $faker->property()[0],
        'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
        'updated_at' => \Carbon\Carbon::now()->toDateTimeString()
    ];
});

$factory->define(\App\Komma\Shop\Properties\Models\PropertyValueTranslation::class, function (Faker\Generator $faker) {
    $faker->addProvider(\App\Komma\Shop\Factories\Fakers\PropertyFaker::class);

    return [
        'value' => $propertyData = $faker->property()[1],
        'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
        'updated_at' => \Carbon\Carbon::now()->toDateTimeString()
    ];
});