nova-order-field icon indicating copy to clipboard operation
nova-order-field copied to clipboard

A field that adds reordering functionality to your Laravel Nova resource's index using the eloquent-sortable package by Spatie.

Results 13 nova-order-field issues
Sort by recently updated
recently updated
newest added

Added Nova 4 compatibility.

Not sure if I am implementing this package wrong. But it is asking for me to implement sortable on the model not the custom pivot. When doing this an error...

I followed https://github.com/spatie/eloquent-sortable#usage, specifically optionally setting the order_column. It looks like the problem with doing this is the line https://github.com/michielkempen/nova-order-field/blob/master/src/Orderable.php#L125 returns null because `$model->sortable` is null unless you explicitly set...

Spatie uses 'order_column' as the default order_column_name, so I think it makes sense to assume the default to be 'order_column' unless explicitly set.

relates: https://github.com/michielkempen/nova-order-field/issues/27

Hi, guys! Your package is awesome. But I've got an error. I have a model that should be orderable within `BelongsTo` and `BelongsToMany` relations at the same time. So, my...

Does the package support sorting on both Index and relationship (HasMany) at once?

This occurred after an update from 2.0.0 to 2.0.4. I downgraded to 2.0.1 (since that's where the pivot table work seems to begin) and do not see this issue. Let...

Hi there, When OrderField is used, all other fields using the function sortable() are disabled, e.g.: OrderField::make('Order'), Boolean::make('Active')->sortable(); Thanks, Enrique

I know it's an awful workaround, but if you are looking for a way to avoid Nova refreshing the entire page when sorting your resources, just go to IndexField.vue file:...