This commit is contained in:
Dwi Swandhana
2026-06-11 12:07:23 +08:00
parent f7cb75c9cf
commit d3ac4fc33f
2 changed files with 29 additions and 0 deletions
@@ -1340,6 +1340,7 @@ class FrontpageController extends Controller
$nmrs = $decodedData['keteranganrujukan'] ?? 'RSSA Malang';
$tanggalregis = $decodedData['tanggalregis'] ?? date('Y-m-d');
$tanggalsampel = $decodedData['tanggalsampel'] ?? date('Y-m-d');
$asalpengirim = $decodedData['asalpengirim'] ?? null;
$telpon = str_replace('_', '', $nohap);
$tlsasal = str_replace('_', ' ', $tlsasal);
$klinisi = str_replace('_', ' ', $klinisi);
@@ -1493,6 +1494,7 @@ class FrontpageController extends Controller
'tanggalsampel' => $tanggalsampel,
'pendaftar' => $clientIpNumeric,
'nmpendaftar' => $clientIp,
'asalpengirim' => $asalpengirim,
'orderid' => $notransaksi,
]);
$pesan = $nofoto;
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('periksa', function (Blueprint $table) {
if (!Schema::hasColumn('periksa', 'asalpengirim')) {
$table->string('asalpengirim', 150)->nullable()->after('order_id');
}
});
}
public function down(): void
{
Schema::table('periksa', function (Blueprint $table) {
if (Schema::hasColumn('periksa', 'asalpengirim')) {
$table->dropColumn('asalpengirim');
}
});
}
};