lernschiff/database/factories/TenantFactory.php

28 lines
544 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class TenantFactory extends Factory
{
public function definition(): array
{
return [
'name' => $this->faker->company(),
'type' => 'school',
'active' => true,
];
}
public function private(): static
{
return $this->state(['type' => 'private']);
}
public function system(): static
{
return $this->state(['type' => 'system', 'name' => 'System']);
}
}