<?php

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

use App\LoopGroup;
use App\LoopGroupUser;
use App\User;
use Faker\Generator as Faker;

$factory->define(LoopGroupUser::class, function (Faker $faker) {
    return [
        'loop_group_id'=> factory(LoopGroup::class)->create()->id,
        'user_id'=> factory(User::class)->create()->id,
        "period" => $faker->numberBetween($min=3, $max= 12),
        "share" => $faker->randomFloat(2, $min=100, $max=3000),
        "encashment_month" => $faker->date('Y-m-d'),
        "status" => $faker->randomElement(['active', 'cancelled']),
    ];
});
