Files
ots/database/factories/TeamFactory.php
T
Twyco e9fc8cabb5
CI/CD / test_and_check_app (push) Failing after 58s
CI/CD / Publish immutable image (push) Skipped
Fix team authorization, invite revocation, and slug handling
2026-09-19 05:54:18 +02:00

23 lines
439 B
PHP

<?php
namespace Database\Factories;
use App\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/** @extends Factory<Team> */
class TeamFactory extends Factory
{
public function definition(): array
{
$name = fake()->unique()->company();
return [
'name' => $name,
'slug' => Str::slug($name),
'require_2fa' => false,
];
}
}