Add tests for featured thumbnail generation; apply Pint formatting and related edits
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Models\AcademyBadge;
|
||||
use App\Models\AcademyCategory;
|
||||
use App\Models\AcademyChallenge;
|
||||
use App\Models\AcademyLesson;
|
||||
use App\Models\AcademyLessonBlock;
|
||||
use App\Models\AcademyPromptPack;
|
||||
use App\Models\AcademyPromptPackItem;
|
||||
use App\Models\AcademyPromptTemplate;
|
||||
@@ -114,7 +115,7 @@ class AcademyDemoSeeder extends Seeder
|
||||
];
|
||||
|
||||
foreach ($lessons as $index => $lesson) {
|
||||
AcademyLesson::query()->updateOrCreate(
|
||||
$academyLesson = AcademyLesson::query()->updateOrCreate(
|
||||
['slug' => $lesson['slug']],
|
||||
[
|
||||
'category_id' => $categories->get($lesson['category_slug'])?->id,
|
||||
@@ -129,6 +130,35 @@ class AcademyDemoSeeder extends Seeder
|
||||
'published_at' => now()->subDays(8 - $index),
|
||||
],
|
||||
);
|
||||
|
||||
if ($lesson['slug'] === 'what-is-ai-assisted-digital-art') {
|
||||
AcademyLessonBlock::query()->updateOrCreate(
|
||||
[
|
||||
'lesson_id' => $academyLesson->id,
|
||||
'type' => 'ai_comparison',
|
||||
'sort_order' => 0,
|
||||
],
|
||||
[
|
||||
'title' => 'Same Prompt, Different AI Models',
|
||||
'payload' => [
|
||||
'title' => 'Same Prompt, Different AI Models',
|
||||
'intro' => 'We used the same fantasy forest prompt in different AI image tools to compare how each model handles mood, composition, detail, lighting, and wallpaper quality.',
|
||||
'prompt' => 'A peaceful fantasy forest wallpaper, glowing blue flowers, soft morning light, gentle mist, wide cinematic composition, detailed digital painting, calm mood, high-resolution wallpaper, no text, no watermark.',
|
||||
'negative_prompt' => 'text, watermark, blurry pixels, distorted objects, bad anatomy, modern UI',
|
||||
'aspect_ratio' => '16:9',
|
||||
'criteria' => [
|
||||
'Composition',
|
||||
'Lighting',
|
||||
'Wallpaper quality',
|
||||
'Prompt accuracy',
|
||||
'Detail quality',
|
||||
'Beginner friendliness',
|
||||
],
|
||||
],
|
||||
'active' => true,
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$prompts = [
|
||||
@@ -419,4 +449,4 @@ class AcademyDemoSeeder extends Seeder
|
||||
|
||||
app(AcademyCacheService::class)->clearAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user