code/database/migrations/2021_07_20_123747_user_access_token.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class UserAccessToken extends Migration
{
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('access_token')->default('');
});
}
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('access_token');
});
}
}