filament-adjacency-list icon indicating copy to clipboard operation
filament-adjacency-list copied to clipboard

Start position at 1 like filament reorderable

Open GhostvOne opened this issue 1 year ago • 1 comments

Filament reorderable start position at 1 and it should be like Filament.

You can take a look here in Filament : filament\tables\src\Concerns\CanReorderRecords.php

foreach ($order as $index => $recordKey) {
    $this->getTableRecord($recordKey)->{$relationship->getPivotAccessor()}->update([
        $orderColumn => $index + 1,
    ]);
}

GhostvOne avatar Aug 10 '24 08:08 GhostvOne

@saade

GhostvOne avatar Aug 12 '24 09:08 GhostvOne