Skip to content

Add static methods to support searching from model#125

Closed
tkrause wants to merge 5 commits into
sleimanx2:masterfrom
tkrause:master
Closed

Add static methods to support searching from model#125
tkrause wants to merge 5 commits into
sleimanx2:masterfrom
tkrause:master

Conversation

@tkrause

@tkrause tkrause commented Nov 10, 2017

Copy link
Copy Markdown

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