src/Form/Eloquent/WithSharpFormEloquentUpdater.php
protected function getFormListFieldsConfiguration()
    {
        return collect($this->fields)
            ->filter(function($field) {
                return $field instanceof SharpFormListField
                    && $field->isSortable();

            })->map(function($listField) {
                return [
                    "key" => $listField->key(),
                    "orderAttribute" => $listField->orderAttribute()
                ];

            })->keyBy("key");
    }
protected function getFormListFieldsConfiguration()
    {
        return collect($this->fields)
            ->filter(function($field) {
                return $field instanceof SharpFormListField
                    && $field->isSortable();

            })->map(function($listField) {
                return [
                    "key" => $listField->key(),
                    "orderAttribute" => $listField->orderAttribute()
                ];

            })->keyBy("key");
    }
protected function getFormListFieldsConfiguration ( ) { return collect ( $ this -> fields ) -> filter ( function ( $ field ) { return $ field instanceof SharpFormListField && $ field -> isSortable ( ) ; } ) -> map ( function ( $ listField ) { return [ "key" => $ listField -> key ( ) , "orderAttribute" => $ listField -> orderAttribute ( ) ] ; } ) -> keyBy ( "key" ) ; }
Get all List fields which are sortable and their "orderAttribute"
configuration to be used by EloquentModelUpdater
for automatic ordering.

@return Collection
Get all List fields which are sortable and their orderAttribute configuration to be used by EloquentModelUpdater for automatic ordering .