ProjectFactory.php 371 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

use Faker\Generator as Faker;

$factory->define(\App\Project::class, function (Faker $faker) {
    return [
        'payment_id' => $faker->sha256,
        'target_amount' => $faker->randomNumber(),
        'status' => $faker->randomElement(['new', 'open', 'funded']),
        'created_at' => $faker->dateTime,
        'updated_at' => $faker->dateTime,
    ];
});