30 lines
805 B
PHP
30 lines
805 B
PHP
<?php
|
||
|
||
namespace Database\Factories;
|
||
|
||
use App\Models\Story;
|
||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
||
/**
|
||
* @extends Factory<Story>
|
||
*/
|
||
class StoryFactory extends Factory
|
||
{
|
||
/**
|
||
* @return array<string, mixed>
|
||
*/
|
||
public function definition(): array
|
||
{
|
||
return [
|
||
'title' => fake()->sentence(4),
|
||
'badge' => fake()->randomElement(['Tanıtım', 'Yeni Dönem', null]),
|
||
'content' => fake()->paragraphs(2, true),
|
||
'image' => null,
|
||
'cta_text' => fake()->randomElement(['Detaylı Bilgi', 'Hakkımızda', null]),
|
||
'cta_url' => fake()->randomElement(['/kurumsal/hakkimizda', '/egitimler', null]),
|
||
'order_index' => fake()->numberBetween(0, 10),
|
||
'is_active' => true,
|
||
];
|
||
}
|
||
}
|