ekmungai/eloquent-ifrs

View on GitHub
database/factories/ReportingPeriodFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

use IFRS\Models\ReportingPeriod;
use Faker\Generator as Faker;

$factory->define(
    ReportingPeriod::class,
    function (Faker $faker) {
        return [
            'period_count' => $faker->randomDigit,
            'calendar_year' => $faker->unique()->year,
            'status' => ReportingPeriod::OPEN,
        ];
    }
);