This commit is contained in:
Stefanescu Mihai
2026-03-19 18:54:50 +02:00
parent 82ebb697f3
commit 49b1d3581a
19 changed files with 1496 additions and 11 deletions
@@ -0,0 +1,26 @@
<?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(),
];
}
}