Files
InvoiceShelf/database/factories/PaymentAllocationFactory.php
T

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),
];
}
}