Files
UNIT3D-Community-Edition/database/factories/TorrentFileFactory.php
HDVinnie de0b19f27d Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-14 21:42:32 +00:00

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;
},
];
});