Some checks failed
tests / ci (pull_request) Has been cancelled
- Implemented StudentService to retrieve all students for selection. - Created migration for tuition_invoices and tuition_payments tables. - Added seeders for TuitionInvoice and TuitionPayment with sample data. - Updated DatabaseSeeder to include new seeders. - Developed UI components for managing tuition invoices and payments, including forms and data tables. - Introduced RupiahInput component for formatted currency input. - Added routes for tuition invoices and payments management. - Defined TypeScript types for tuition invoices and payments.
32 lines
835 B
PHP
32 lines
835 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\TuitionInvoice;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TuitionInvoiceSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
TuitionInvoice::insert([
|
|
[
|
|
'student_id' => 1,
|
|
'academic_term_id' => 2,
|
|
'amount_due' => 3000000,
|
|
'due_date' => '2026-08-10',
|
|
'created_at' => '2026-07-25 08:00:00',
|
|
'updated_at' => '2026-07-25 08:00:00',
|
|
],
|
|
[
|
|
'student_id' => 2,
|
|
'academic_term_id' => 2,
|
|
'amount_due' => 3000000,
|
|
'due_date' => '2026-08-10',
|
|
'created_at' => '2026-07-25 08:00:00',
|
|
'updated_at' => '2026-07-25 08:00:00',
|
|
],
|
|
]);
|
|
}
|
|
}
|