2021-07-18 17:28:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
2021-08-08 16:23:02 +00:00
|
|
|
use Pterodactyl\Models\HardwareSecurityKey;
|
2021-07-18 17:28:14 +00:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class WebauthnKeyFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*/
|
2021-08-08 16:23:02 +00:00
|
|
|
protected $model = HardwareSecurityKey::class;
|
2021-07-18 17:28:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*/
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'name' => $this->faker->name,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|