foreignIdFor(Role::class, 'role_id')->default('1')->after('password'); }); } /** * Reverse the migrations. */ public function down(): void { // Schema::table('users', function (Blueprint $table) { $table->dropForeignIdFor(Role::class, 'role_id'); }); } };