Deploy HickLab3D Dashboard / Deploy to production (push) Failing after 23s
Replace the old touchmark/PNG identity with the supplied lockup and monogram, segmented role-aware navigation, Live/Draft listing filters with generation-based cache invalidation, and admin Projects covering immutable file revisions, listing live pointers, and exact-decimal filament/packaging/shipping costing. Additive schema only; no Etsy publication. Isolated clone tests: 301 tests, 1162 assertions.
38 lines
945 B
PHP
38 lines
945 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Project;
|
|
use App\Models\ProjectRevision;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<ProjectRevision>
|
|
*/
|
|
class ProjectRevisionFactory extends Factory
|
|
{
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'project_id' => Project::factory(),
|
|
'revision_number' => 1,
|
|
'change_notes' => 'Initial revision.',
|
|
'status' => ProjectRevision::STATUS_DRAFT,
|
|
'created_by' => User::factory()->create(['role' => 'admin'])->id,
|
|
];
|
|
}
|
|
|
|
public function approved(): static
|
|
{
|
|
return $this->state(fn (): array => [
|
|
'status' => ProjectRevision::STATUS_APPROVED,
|
|
'approved_by' => User::factory()->create(['role' => 'admin'])->id,
|
|
'approved_at' => now(),
|
|
]);
|
|
}
|
|
}
|