*/ class ProjectCostSnapshotFactory extends Factory { /** * @return array */ public function definition(): array { return [ 'project_id' => Project::factory(), 'revision_id' => ProjectRevision::factory(), 'currency' => 'GBP', 'basis' => ProjectCostSnapshot::BASIS_ESTIMATE, 'batch_units' => 1, 'filament_total' => null, 'packaging_total' => null, 'shipping_total' => null, 'grand_total' => null, 'recorded_by' => User::factory()->create(['role' => 'admin'])->id, 'recorded_at' => now(), ]; } }