File: D:/HostingSpaces/ASmits/kemi.nl/database/migrations/2016_08_04_000007_create_users_table.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->integer('role_id')->unsigned();
$table->string('username');
$table->string('password');
$table->string('email');
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->timestamp('last_login_attempt')->useCurrent();
$table->integer('failed_login_attempts');
$table->timestamps();
$table->rememberToken();
$table->foreign('role_id')->references('id')->on('roles');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}