mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
22 lines
670 B
PHP
22 lines
670 B
PHP
|
<?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),
|
||
|
];
|
||
|
});
|