1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00
invoiceninja/database/factories/ExpenseFactory.php

23 lines
740 B
PHP
Raw Normal View History

<?php
use App\DataMapper\ClientSettings;
use App\DataMapper\CompanySettings;
use App\Factory\InvoiceItemFactory;
use Faker\Generator as Faker;
$factory->define(App\Models\Expense::class, function (Faker $faker) {
return [
'amount' => $faker->numberBetween(1, 10),
'custom_value1' => $faker->text(10),
'custom_value2' => $faker->text(10),
'custom_value3' => $faker->text(10),
'custom_value4' => $faker->text(10),
'exchange_rate' => $faker->randomFloat(2, 0, 1),
'expense_date' => $faker->date(),
'is_deleted' => false,
'public_notes' => $faker->text(50),
'private_notes' => $faker->text(50),
'transaction_reference' => $faker->text(5),
];
});