increments('id'); $table->timestamps(); $table->unsignedInteger('user_id')->index(); $table->string('provider_user_id'); $table->string('provider'); $table->string('access_token'); $table->string('nick_name'); $table->string('full_name'); $table->string('avatar', 500); $table->string('email'); $table->foreign('user_id') ->references('id')->on('users') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('oauth_identities'); } }