Skip to content

Instantly share code, notes, and snippets.

@mostafa6765
Last active October 7, 2018 20:07
Show Gist options
  • Save mostafa6765/c1e55c1626bd926c247f7acf40045b3c to your computer and use it in GitHub Desktop.
Save mostafa6765/c1e55c1626bd926c247f7acf40045b3c to your computer and use it in GitHub Desktop.
multi-auth-laravel-db
<?php
// 5.4, 5.5, 5.6
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAdminsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('admins', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('admins');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment