Make dark mode per user

This commit is contained in:
DariusIII
2025-10-16 12:52:38 +02:00
parent 6cc2846e33
commit 439e95f478
8 changed files with 419 additions and 34 deletions
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->boolean('dark_mode')->default(false)->after('notes');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('dark_mode');
});
}
};