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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user