add necessary packages/Webkul/Core/src/Database/Factories/LocaleFactory.php

This commit is contained in:
Herbert Maschke 2020-01-23 14:11:56 +01:00
parent a090af5874
commit 3017fa337d
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
use Webkul\Core\Models\Locale;
$factory->define(Locale::class, function (Faker $faker, array $attributes) {
return [
'code' => $faker->languageCode,
'name' => $faker->country,
'direction' => 'ltr',
];
});
$factory->state(Category::class, 'rtl', [
'direction' => 'rtl',
]);