mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-01 21:00:58 +00:00
30 lines
678 B
PHP
30 lines
678 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Invoice;
|
|
use App\Models\Payment;
|
|
use App\Models\PaymentAllocation;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<PaymentAllocation>
|
|
*/
|
|
class PaymentAllocationFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'payment_id' => Payment::factory(),
|
|
'invoice_id' => Invoice::factory(),
|
|
'amount' => $this->faker->numberBetween(1, 10000),
|
|
'base_amount' => $this->faker->numberBetween(1, 10000),
|
|
];
|
|
}
|
|
}
|