D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
dentostock.com
/
database
/
migrations
/
Filename :
2024_06_12_105137_create_error_logs_table.php
back
Copy
<?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('error_logs', function (Blueprint $table) { $table->id(); $table->integer('status_code'); $table->string('url'); $table->integer('hit_counts')->default(0); $table->string('redirect_url')->nullable(); $table->string('redirect_status')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('error_logs'); } };