File: D:/HostingSpaces/SBogers54/csbinstallatietechniek.nl/database/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\Properties\Models\PropertyKeyTranslation::class, function (Faker\Generator $faker) {
// $faker->addProvider(PropertyFaker::class);
return [
'value' => $propertyData = $faker->property()[0],
'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
'updated_at' => \Carbon\Carbon::now()->toDateTimeString()
];
});
$factory->define(\App\Properties\Models\PropertyValueTranslation::class, function (Faker\Generator $faker) {
// $faker->addProvider(PropertyFaker::class);
return [
'value' => $propertyData = $faker->property()[1],
'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
'updated_at' => \Carbon\Carbon::now()->toDateTimeString()
];
});