ekmungai/eloquent-ifrs

View on GitHub
database/factories/EntityFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

use Faker\Generator as Faker;

use IFRS\Models\Entity;

$factory->define(
    Entity::class,
    function (Faker $faker) {
        return [
            'name' => $faker->company,
            'multi_currency' => $faker->boolean(),
        ];
    }
);