mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 18:42:31 +01:00
29 lines
546 B
PHP
29 lines
546 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Support\Str;
|
|
use Pterodactyl\Models\Location;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class LocationFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Location::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'short' => Str::random(8),
|
|
'long' => Str::random(32),
|
|
];
|
|
}
|
|
}
|