* feat: recreate public frontend with Heritage Editorial identity Replace placeholder visual system with EB Garamond/olive tokens, brand assets, editorial home narrative, São Paulo settings, real testimonials, and regenerated visual baselines. Co-authored-by: Cursor <cursoragent@cursor.com> * docs: archive recreate-public-frontend and sync Heritage Editorial specs Merge delta requirements into main OpenSpec capabilities and move the completed change into the dated archive. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\PortfolioCase;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<PortfolioCase>
|
|
*/
|
|
class PortfolioCaseFactory extends Factory
|
|
{
|
|
protected $model = PortfolioCase::class;
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
$title = fake()->unique()->words(4, true);
|
|
|
|
return [
|
|
'title' => $title,
|
|
'slug' => str($title)->slug()->toString(),
|
|
'summary' => fake()->sentence(),
|
|
'event_type' => 'Casamento',
|
|
'city' => 'São Paulo',
|
|
'venue' => fake()->company(),
|
|
'event_date' => fake()->date(),
|
|
'challenge' => fake()->paragraph(),
|
|
'solution' => fake()->paragraph(),
|
|
'result' => fake()->paragraph(),
|
|
'cover_image_path' => 'content/fixture-cover.jpg',
|
|
'cover_image_alt' => 'Capa do caso',
|
|
'is_featured' => false,
|
|
'sort_order' => 0,
|
|
'published_at' => null,
|
|
'meta_title' => null,
|
|
'meta_description' => null,
|
|
];
|
|
}
|
|
|
|
public function published(): static
|
|
{
|
|
return $this->state(fn (array $attributes): array => [
|
|
'published_at' => now(),
|
|
]);
|
|
}
|
|
}
|