New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ka4ivan/laravel-view-sortable

Sort Link and URL for Laravel Framework
1,006 8
Install
composer require ka4ivan/laravel-view-sortable
Latest Version:1.1.3
PHP:^8.0.2
Laravel:9 – 13
License:MIT
Last Updated:Aug 19, 2026
Links: GitHub  ·  Packagist
Maintainer: ka4ivan

License Build Status Latest Stable Version Total Downloads Quality Score

Installation

  1. Require this package with composer
composer require ka4ivan/laravel-view-sortable
  1. Publish package resource:
php artisan vendor:publish --provider="Ka4ivan\ViewSortable\ServiceProvider"

Usage

Examples usage

{!! \Sort::getSortLink('status', 'Status') !!}
// <a class="lte-sort-link" href="http://test.test?sort=status&order=asc" style="position: relative">Status </a>

{!! \Sort::getSortLink(sort: 'city', text: 'City', order: 'desc', class: 'text-black', query: ['locale' => 'uk']) !!}
// <a class="text-black" href="http://test.test?sort=city&order=desc&locale=uk" style="position: relative">City </a>

{!! (new \Ka4ivan\ViewSortable\Support\Sort)->getSortLink('phone', 'Phone') !!}
// <a class="lte-sort-link" href="http://test.test?sort=phone&order=asc" style="position: relative">Phone </a>

{!! \Sort::getSortUrl('status', 'asc') !!}
// http://test.test?sort=status&order=asc

{!! \Sort::getSortUrl('name', 'asc', ['locale' => 'uk']) !!}
// http://test.test?sort=name&order=asc&locale=uk

{!! \Sort::getNextOrder() !!}
// asc|desc

Related Packages

whitecube/laravel-links

Store & resolve internal URLs without having to worry about route, slug or domai...

612 2
shivella/laravel-bitly

Laravel package for generating bitly url

983,093 74
nahid/linkify

Converts URLs and email addresses in text into HTML links its extended from Misd...

149,985 11
linkeys/signed-url

Enhanced signed URLs for Laravel, including attaching data, click limits and exp...

72,541 22
malyusha/path-history

Laravel package that allows you to create nested/human-readable paths(urls) for...

1,594 4

Version History

Version Released PHP Laravel License
1.1.3 ^8.0.2 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.1.2 ^8.0.2 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.1.1 ^8.0.2 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.1.0 ^8.0.2 ^9.0|^10.0|^11.0|^12.0 MIT
1.0.0 ^8.0.2 ^9.0|^10.0|^11.0 MIT