{"repo":"Kyslik/column-sortable","free":true,"listed":false,"github":"https://github.com/Kyslik/column-sortable","clone":"git clone https://github.com/Kyslik/column-sortable.git","description":"Package for handling column sorting in Laravel 5/6/7/8/9/10","language":"PHP","stars":647,"topics":["php","column-sorting","laravel-5-package","laravel","sorting","relation-sorting"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Column sorting for Laravel 5.5-8 Package for handling column sorting in Laravel 5.[5-8]. For earlier versions of Laravel checkout branch L5.1-3 - Column sorting for Laravel 5.5-10 - Setup - Composer - Laravel's =5.5 auto discovery - Manual installation (pre 5.5) - Publish configuration - Usage - Blade Extension - Configuration in few words - Font Awesome (default font classes) - Font Awesome 5 - Full Example - Routes - Controller's index() method - View ( pagination included ) - HasOne / BelongsTo Relation sorting - Define hasOne relation - Define belongsTo relation - Define $sortable arrays - Blade and relation sorting - ColumnSortable overriding (advanced) - Aliasing - Using withCount() - Exception to catch Setup Composer Pull this package in through Composer (development/latest version dev-master ) Laravel's =5.5 auto discovery Simply install the package and let Laravel do its magic. [!NOTE] (pre Laravel 6.0) : major and minor versions should match with Laravel's version, for example if you are using Laravel 5.4, column-sortable version should be 5.4. . Manual installation (pre 5.5) Add the service provider to array of providers in config/app.php Publish configuration Publish the package configuration file to your application. See configuration file ( config/columnsortable.php ) yourself and make adjustments as you wish. Usage Use Sortable trait inside your Eloquent model(s). Define $sortable array (see example code below). [!NOTE] Scheme::hasColumn() is run only when $sor","default_branch":null,"files":null,"tree":[],"storefront":"/r/Kyslik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Kyslik/column-sortable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}