Lass Menüeinträge auf eine Sprungmarke der Zielseite zeigen
Zweiter Schritt in „Ziel ändern“, neue Spalte navigation_items.anchor (nullable, abwärtskompatibel). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b43fbb7d1
commit
04a9a4f83f
5 files changed
+274
-7
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Ergänzend und abwärtskompatibel: Ein Menüeintrag mit Zielseite kann auf eine Sprungmarke dieser Seite zeigen.
|
||||
* Ohne Wert (bisher alle Einträge) führt er zum Seitenanfang. Ältere Programmstände ignorieren die Spalte.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('navigation_items', function (Blueprint $table) {
|
||||
$table->string('anchor', 60)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('navigation_items', function (Blueprint $table) {
|
||||
$table->dropColumn('anchor');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user