25 lines
615 B
PHP
25 lines
615 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Website>
|
|
*/
|
|
class WebsiteFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->company(),
|
|
'domain' => fake()->unique()->domainName(),
|
|
'tier_id' => \App\Models\Tier::factory(),
|
|
'cache_hit_rate_limit' => 100,
|
|
'external_api_rate_limit' => 10,
|
|
'is_active' => true,
|
|
'bypass_rate_limit' => false,
|
|
];
|
|
}
|
|
}
|