Skip to content

Instantly share code, notes, and snippets.

@andyyou
Created October 23, 2020 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyyou/6b2bf02051dbd404c57c81e4034120e9 to your computer and use it in GitHub Desktop.
Save andyyou/6b2bf02051dbd404c57c81e4034120e9 to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->dropUnique(['email']);
$table->string('password')->nullable()->change();
$table->json('social')->nullable();
$table->softDeletes();
$table->unique(['email', 'deleted_at']);
});
}
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropUnique(['email', 'deleted_at']);
$table->dropSoftDeletes();
$table->dropColumn(['social']);
$table->string('password')->change();
$table->string('email')->unique()->change();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment