Coder Social home page Coder Social logo

s-damian / larasort Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 1.0 114 KB

Column sorting with Laravel - Eloquent sortable

License: MIT License

PHP 98.29% CSS 1.71%
laravel laravel8 laravel9 orderby laravel-library laravel-package sortable sortable-list sorting sorting-library

larasort's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

uxoa

larasort's Issues

CSS not being applied when using @sortableLink directive

I'm looking at the CSS and I see the CSS will only be applied when using the CSS class .with-larasort. Looking over the documentation i don't see that you mention that this class must manually be added. Do i have to manually add this class to the table? I followed the steps in the documentation but the CSS is not being applied.

image

Incompatibility with Laravel 9 Scout

Is there any chance you might be able to add support for use with Laravel 9 Scout. The trait Laravel\Scout\Searchable is not compatible with the SDamian\Larasort\AutoSortable trait. Sorting works fine when clicking on columns. However, If I search on a model that's using Scout it breaks.

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",
        "laravel/framework": "^9.19",
        "laravel/sanctum": "^3.0",
        "laravel/scout": "^9.4",
        "laravel/tinker": "^2.7",
        "laravel/ui": "^4.0",
        "s-damian/larasort": "^1.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"
    },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.