<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Language;
use App\PhotoCategory;
use App\PhotoCategoryDescription;
use Faker\Generator as Faker;

$factory->define(PhotoCategoryDescription::class, function (Faker $faker) {
    return [
        'name' => $faker->name,
        'slug' => $faker->unique()->name,
        'photo_category_id' => factory(PhotoCategory::class)->create()->id,
        'language_id' => currentLanguage()->id,
    ];
});
