OwlCyberSecurity - MANAGER
Edit File: 2022_08_22_102246_create_error_logs_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() { Schema::connection('pgsql_log')->create('error_logs', function (Blueprint $table) { $table->id(); $table->integer('user_id')->nullable(); $table->text('ip'); $table->text('url'); $table->text('message'); $table->text('stack'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('error_logs'); } };