Update Module Jenis Jaminan

- Penambahan Slug
- Penambahan Funtcion to get legalitas jaminan by id jenis jaminan
This commit is contained in:
Daeng Deni Mardaeni
2024-09-04 20:27:13 +07:00
parent 77be1b2685
commit 3a787fb176
6 changed files with 90 additions and 21 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('jenis_jaminan', function (Blueprint $table) {
$table->string('jenis_legalitas_jaminan_id')->nullable()->after('slug');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('jenis_jaminan', function (Blueprint $table) {
$table->dropColumn('jenis_legalitas_jaminan_id');
});
}
};