Skip to content

Add static methods to support searching from model #125

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

Closed
wants to merge 5 commits into from
Closed

Add static methods to support searching from model #125

wants to merge 5 commits into from

Conversation

tkrause
Copy link

@tkrause tkrause commented Nov 10, 2017

In the documentation, it says you can do the following.

Book::search()...

On the latest Laravel version, __callStatic is called instead of __call on the model class directly. This causes it to call search() on the QueryBuilder of the ORM which doesn't exist and errors.

This pull request is to fix this this error and allow for the specified functionality. I do realize that there is another PR similar #120. However, there has been no reply to that PR in awhile.

@tkrause tkrause closed this Jul 18, 2022
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

Successfully merging this pull request may close these issues.

1 participant