25 lines
549 B
PHP
25 lines
549 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Tenant;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
class TenantFactory extends Factory
|
|
{
|
|
protected $model = Tenant::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'uuid' => (string) Str::uuid(),
|
|
'code' => 'T'.rand(100, 999),
|
|
'name' => $this->faker->company(),
|
|
'timezone' => 'Asia/Manila',
|
|
'theme_color' => '#10B981',
|
|
'status' => 'active',
|
|
];
|
|
}
|
|
}
|