Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ziishaned/7af38c3eab3b34226a49eb8d5c76fb60 to your computer and use it in GitHub Desktop.
Save ziishaned/7af38c3eab3b34226a49eb8d5c76fb60 to your computer and use it in GitHub Desktop.
JWT authentication for Lumen 5.6
<?php
use Illuminate\Support\Facades\Schema;
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->string('name');
$table->string('email')->unique();
$table->string('password');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment