kyslik/column-sortable
kyslik/column-sortable adds easy column sorting to Laravel 5.5–8 apps. Use Blade helpers to generate sortable links, configure sortable columns, and sort by related hasOne/belongsTo fields, with override and alias options for custom queries.
hasOne/belongsTo), aliases, and withCount() sorting — enough to cover most MVP table requirements without a front-end table library.$sortable and a custom exception for malformed input, but the product decision is to require whitelisting and exception handling in the acceptance criteria — otherwise sorting becomes an injection or 500-error vector.sort parameters, and confirm column whitelists in every model.Sortable trait with an explicit $sortable whitelist, call sortable() before paginate(), render headers with @sortablelink(), and catch ColumnSortableException for user-controlled input. It supports relation sorting, aliasing, and custom orderBy overrides for edge cases. Pin the package version and verify compatibility during Laravel upgrades.How can I help you explore Laravel packages today?