first commit from hostslim

This commit is contained in:
2026-03-24 21:12:21 +01:00
commit 20fee7784c
252 changed files with 27385 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Database\Factories;
use App\Models\User;
use App\Models\Website;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/** @extends Factory<Website> */
class WebsiteFactory extends Factory
{
public function definition(): array
{
return [
'user_id' => User::factory(),
'name' => fake()->company(),
'domain' => fake()->domainName(),
'tracking_id' => 'TA-'.strtoupper(Str::random(10)),
'is_active' => true,
'settings' => [],
];
}
public function inactive(): static
{
return $this->state(['is_active' => false]);
}
}