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 CreateAddressesTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
Schema::create('addresses', function (Blueprint $table) {
$table->increments('id');
$table->hashslug();
$table->nullableBelongsTo('countries');
$table->unsignedInteger('addressable_id');
$table->string('addressable_type');
$table->text('primary')->nullable();
$table->text('secondary')->nullable();
$table->string('postcode')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
$table->is('default');
$table->standardTime();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('addresses');