for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRelatablesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create(
'relatables', function (Blueprint $table) {
$table->unsignedInteger('related_id');
$table->unsignedInteger('relatable_id');
$table->string('relatable_type')->nullable();
}
);
* Reverse the migrations.
public function down()
Schema::dropIfExists('relatables');