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_093700_create_promocodes_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { $models = config('promocodes.models'); Schema::create($models['promocodes']['table_name'], function (Blueprint $table) use ($models) { $table->id(); $table->foreignId($models['users']['foreign_id'])->nullable()->constrained()->nullOnDelete(); $table->string('code', 20)->unique(); $table->integer('usages_left')->default(1); $table->boolean('bound_to_user')->default(false); $table->boolean('multi_use')->default(false); $table->longText('details')->nullable(); $table->timestamp('expired_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { $models = config('promocodes.models'); Schema::drop($models['promocodes']['table_name']); } };