관리-도구
편집 파일: 2024_11_21_043757_create_localizations_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. */ public function up(): void { Schema::create('localizations', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('user_id')->nullable(); $table->string('guard')->nullable(); $table->foreignId('language_id')->constrained()->onDelete('cascade'); $table->string('ip'); $table->string('country')->nullable(); $table->string('country_code')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('localizations'); } };