32 lines
840 B
PHP
32 lines
840 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Channel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Channel>
|
|
*/
|
|
class ChannelFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->words(2, true),
|
|
'hostname' => $this->faker->unique()->domainName(),
|
|
'locale' => $this->faker->randomElement(['en', 'de', 'sk', 'fr']),
|
|
'taxonomy_prefix' => $this->faker->randomElement(['topic', 'tag', 'category']),
|
|
'template' => 'default',
|
|
'meta_title' => null,
|
|
'meta_description' => null,
|
|
'meta_keywords' => null,
|
|
'og_image' => null,
|
|
];
|
|
}
|
|
}
|