ekmungai/eloquent-ifrs

View on GitHub
database/factories/CurrencyFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

use IFRS\Models\Currency;

use Faker\Generator as Faker;

$factory->define(
    Currency::class,
    function (Faker $faker) {
        return [
            'name' => $faker->name,
            'currency_code' => $faker->currencyCode,
        ];
    }
);