forked from Alex/Pterodactyl-Panel
28 lines
539 B
PHP
28 lines
539 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Pterodactyl\Models\Allocation;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class AllocationFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Allocation::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'ip' => $this->faker->ipv4,
|
|
'port' => $this->faker->randomNumber(5),
|
|
];
|
|
}
|
|
}
|