Kyslik / column-sortable

Package for handling column sorting in Laravel 5/6/7/8
MIT License
641 stars 105 forks source link

Incompatibility with Laravel 9 Scout #202

Open TechhDan opened 2 years ago

TechhDan commented 2 years ago

The Kyslik\ColumnSortable\Sortable trait is not working well with the Laravel\Scout\Searchable trait. I implemented this package and it works great by itself. However, when I search using the Laravel Scout package it breaks.

I saw this issue was brought up in 2017 but I hope maybe it can be revisited. In case this is better suited to be fixed on Scout's repo I've opened up a feature request there as well.

image

"require": {
        "php": "^8.0.2",
        "guzzlehttp/guzzle": "^7.2",
        "kyslik/column-sortable": "^6.4",
        "laravel/framework": "^9.19",
        "laravel/sanctum": "^3.0",
        "laravel/scout": "^9.4",
        "laravel/tinker": "^2.7",
        "laravel/ui": "^4.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.5.10",
        "spatie/laravel-ignition": "^1.0"
    },