update
This commit is contained in:
@@ -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;
|
||||
|
||||
+27
@@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user