Files
UNIT3D-Community-Edition/database/factories/ThankFactory.php
T
HDVinnie d75bbdc665 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-07-13 00:36:19 +00:00

34 lines
690 B
PHP

<?php
/* @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\Models\Thank;
use App\Models\Torrent;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class ThankFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Thank::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'user_id' => fn () => User::factory()->create()->id,
'torrent_id' => fn () => Torrent::factory()->create()->id,
];
}
}