init
This commit is contained in:
24
database/factories/WebsiteFactory.php
Normal file
24
database/factories/WebsiteFactory.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user