Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we override the OrderByScope::class #6

Open
shabaz-ejaz opened this issue Feb 14, 2022 · 0 comments
Open

How do we override the OrderByScope::class #6

shabaz-ejaz opened this issue Feb 14, 2022 · 0 comments

Comments

@shabaz-ejaz
Copy link

Your issue may already be reported!
Please search on the issue tracker before creating one.

Expected Behavior

I want to override the OrderByScope::class so that I can create my own implementation of the orderBy functionality.

Current Behavior

It seems like the Scope has the foloowing default scopes:

class Scopes extends ScopesAbstract
{
    protected $scopes = [
        'orderBy' => OrderByScope::class,
        'begin' => WhereDateGreaterScope::class,
        'end' => WhereDateLessScope::class,
    ];

This means it will always automatically use the OrderByScope class. Can we provide our own class for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant