update deploy
This commit is contained in:
29
database/factories/StoryFactory.php
Normal file
29
database/factories/StoryFactory.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user