mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-13 06:29:24 -05:00
2ca429c4ce
This reverts commit 7e65e1d589.
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
|
|
|
/* @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Torrent;
|
|
use App\Models\TorrentRequest;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ReportFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'type' => $this->faker->word(),
|
|
'reporter_id' => fn () => User::factory()->create()->id,
|
|
'staff_id' => fn () => User::factory()->create()->id,
|
|
'title' => $this->faker->word(),
|
|
'message' => $this->faker->text(),
|
|
'solved' => $this->faker->randomNumber(),
|
|
'verdict' => $this->faker->text(),
|
|
'reported_user' => fn () => User::factory()->create()->id,
|
|
'torrent_id' => fn () => Torrent::factory()->create()->id,
|
|
'request_id' => fn () => TorrentRequest::factory()->create()->id,
|
|
];
|
|
}
|
|
}
|