forked from Alex/Pterodactyl-Panel
31 lines
633 B
PHP
31 lines
633 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use Ramsey\Uuid\Uuid;
|
||
|
use Pterodactyl\Models\Backup;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
class BackupFactory extends Factory
|
||
|
{
|
||
|
/**
|
||
|
* The name of the factory's corresponding model.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $model = Backup::class;
|
||
|
|
||
|
/**
|
||
|
* Define the model's default state.
|
||
|
*/
|
||
|
public function definition(): array
|
||
|
{
|
||
|
return [
|
||
|
'uuid' => Uuid::uuid4()->toString(),
|
||
|
'is_successful' => true,
|
||
|
'name' => $this->faker->sentence,
|
||
|
'disk' => Backup::ADAPTER_WINGS,
|
||
|
];
|
||
|
}
|
||
|
}
|