Files

27 lines
689 B
PHP
Raw Permalink Normal View History

2026-03-24 21:12:21 +01:00
<?php
namespace Database\Factories;
use App\Models\AnalyticsSession;
use App\Models\Goal;
use App\Models\GoalConversion;
use App\Models\Visitor;
use App\Models\Website;
use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<GoalConversion> */
class GoalConversionFactory extends Factory
{
public function definition(): array
{
return [
'goal_id' => Goal::factory(),
'website_id' => Website::factory(),
'visitor_id' => Visitor::factory(),
'analytics_session_id' => AnalyticsSession::factory(),
'value' => fake()->randomFloat(2, 1, 100),
'converted_at' => now(),
];
}
}