One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
Compro-ISP
/
database
/
migrations
/
Edit File:
2025_07_11_075212_create_packages_types_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\DB; // ← import DB facade return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('packages_types', function (Blueprint $table) { $table->id(); $table->enum('category', ['home', 'corporates']); $table->timestamps(); }); // insert default package types DB::table('packages_types')->insert([ [ 'category' => 'home', 'created_at' => now(), 'updated_at' => now(), ], [ 'category' => 'corporates', 'created_at' => now(), 'updated_at' => now(), ], ]); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('packages_types'); } };
Simpan