id(); $table->string('name'); $table->string('url'); $table->string('icon')->nullable(); $table->unsignedBigInteger('parent_id')->nullable(); $table->integer('sort_order')->default(0); $table->foreign('parent_id')->references('id')->on('menus')->onDelete('set null'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('menus'); } };