for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateModelLogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('model_logs', function (Blueprint $table) {
$table->increments('id');
$table->morphs('subject');
$table->string('causer_type')->nullable();
$table->integer('causer_id')->nullable();
$table->string('description');
$table->string('action');
$table->json('old')->nullable();
$table->json('new');
$table->string('route')->nullable();
$table->string('reverter_type')->nullable();
$table->string('reverter_id')->nullable();
$table->timestamp('reverted_at')->nullable();
$table->string('revert_note')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('model_logs');