Add show_in_nav option for categories in top menu
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 6s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-20 19:16:12 +02:00
co-authored by Claude Sonnet 4.6
parent f1addad742
commit 4916edab7f
5 changed files with 42 additions and 2 deletions
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->boolean('show_in_nav')->default(false)->after('active');
});
}
public function down(): void
{
Schema::table('categories', function (Blueprint $table) {
$table->dropColumn('show_in_nav');
});
}
};