1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/database/factories/PaymentFactory.php

18 lines
492 B
PHP
Raw Normal View History

2019-05-03 09:57:55 +02:00
<?php
use App\DataMapper\ClientSettings;
use App\DataMapper\CompanySettings;
use App\Models\Payment;
2019-05-03 09:57:55 +02:00
use Faker\Generator as Faker;
$factory->define(App\Models\Payment::class, function (Faker $faker) {
return [
'is_deleted' => false,
'amount' => $faker->numberBetween(1, 10),
'date' => $faker->date(),
'transaction_reference' => $faker->text(10),
'type_id' => Payment::TYPE_CREDIT_CARD,
'status_id' => Payment::STATUS_COMPLETED
2019-05-03 09:57:55 +02:00
];
});