id(); $table->string('key', 100)->unique(); $table->text('value'); $table->timestamps(); }); Schema::table('settings', function (Blueprint $table) { $table->index('key', 'idx_settings_key'); }); DB::table('settings')->insert([ [ 'key' => 'version', 'value' => '25.00.1', 'created_at' => now(), 'updated_at' => now(), ], [ 'key' => 'build', 'value' => '3', 'created_at' => now(), 'updated_at' => now(), ], [ 'key' => 'accent_color', 'value' => '#f29b3f', 'created_at' => now(), 'updated_at' => now(), ], ]); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('settings'); } };