database/migrations/2015_12_18_072523_add_preferences_to_users_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPreferencesToUsersTable extends Migration
{
public function up(): void
{
Schema::table('users', static function (Blueprint $table): void {
$table->text('preferences')->after('is_admin')->nullable();
});
}
public function down(): void
{
Schema::table('users', static function (Blueprint $table): void {
$table->dropColumn('preferences');
});
}
}