File: D:/HostingSpaces/SBogers10/komma.pro/database/migrations/2018_08_27_121528_actionlogger.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Actionlogger extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('action_logs', function(Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('user_id')->nullable(); //User may not be present
$table->string('action');
$table->binary('payload');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('action_logs');
}
}