One Hat Cyber Team
Your IP :
3.140.254.100
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
database
/
migrations
/
View File Name :
2023_04_21_093701_create_promocode_user_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Str; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $models = config('promocodes.models'); Schema::create($models['pivot']['table_name'], function (Blueprint $table) use ($models) { $table->id(); $table->foreignId($models['promocodes']['foreign_id'])->constrained()->cascadeOnDelete(); $table->foreignId($models['users']['foreign_id'])->nullable()->constrained()->nullOnDelete(); $table->string('session_id', 40)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { $models = config('promocodes.models'); Schema::drop($models['pivot']['table_name']); } };