mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-13 23:19:55 -06:00
16 lines
399 B
PHP
16 lines
399 B
PHP
<?php
|
|
|
|
/* @var $factory \Illuminate\Database\Eloquent\Factory */
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\TorrentFile::class, function (Faker $faker) {
|
|
return [
|
|
'name' => $faker->name,
|
|
'size' => $faker->randomNumber(),
|
|
'torrent_id' => function () {
|
|
return factory(App\Models\Torrent::class)->create()->id;
|
|
},
|
|
];
|
|
});
|