lots of progress
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Site>
|
||||
*/
|
||||
class SiteFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory(),
|
||||
'url' => fake()->url(),
|
||||
'name' => fake()->company() . ' Website',
|
||||
'monitoring_enabled' => fake()->boolean(80), // 80% chance of being enabled
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user