Skip to content

Instantly share code, notes, and snippets.

@mahardianto
Created February 28, 2017 05:30
Show Gist options
  • Save mahardianto/b5842842ce5eef1e71a69eba750ad78e to your computer and use it in GitHub Desktop.
Save mahardianto/b5842842ce5eef1e71a69eba750ad78e to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddProfilesOnUsersTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('people', function (Blueprint $table) {
//
$table->string('alamat')->nullable()->after('kelamin');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('people', function (Blueprint $table) {
//
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment