GameFactory.php 366 Bytes
Newer Older
quentin.vrel's avatar
quentin.vrel committed
1 2 3 4 5 6 7 8 9
<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Game;
use Faker\Generator as Faker;

$factory->define(Game::class, function (Faker $faker) {
    return [
quentin.vrel's avatar
quentin.vrel committed
10 11 12 13 14
        'titre' => $faker->name,
        'version' => $faker->unique()->randomDigit,
        'created_at' => now(),
        'updated_at' => now(),
        'id_category' => 0
quentin.vrel's avatar
quentin.vrel committed
15 16
    ];
});