feat(laporan_external): tambahkan fitur laporan eksternal

- Menambahkan entri untuk Laporan External di module.json.
- Menambahkan breadcrumb untuk Laporan External di breadcrumbs.php.
- Membuat migrasi untuk tabel laporan_externals.
- Menambahkan rute untuk Laporan External di web.php.
- Memperbarui validasi di LaporanExternalRequest untuk mendukung nullable fields.
- Mengimplementasikan LaporanExternalController untuk menangani operasi CRUD.
This commit is contained in:
Daeng Deni Mardaeni
2025-03-06 09:56:59 +07:00
parent 38b22bce38
commit dd5271a40b
8 changed files with 455 additions and 21 deletions

View File

@@ -3,8 +3,9 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Modules\Lpj\Models\Permohonan;
return new class extends Migration
return new class extends Migration
{
/**
* Run the migrations.
@@ -13,7 +14,7 @@ return new class extends Migration
{
Schema::create('laporan_externals', function (Blueprint $table) {
$table->id();
$table->foreignId('permohonan_id')->constrained('permohonans')->onDelete('cascade');
$table->foreignIdFor(Permohonan::class)->constrained('permohonan')->onDelete('cascade');
$table->string('nomor_laporan');
$table->date('tgl_final_laporan');
$table->decimal('nilai_pasar', 15, 2);