filament-adjacency-list
filament-adjacency-list copied to clipboard
Start position at 1 like filament reorderable
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,
]);
}
@saade