Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up[Question] whereHas, has relationship ? #951
Comments
This comment has been minimized.
|
Our associations API is documented here. If you want to get all of the schools which have a bank account, just join between the two tables. |
sgrif
closed this
Jun 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kocoten1992 commentedJun 14, 2017
Hi diesel,
I'm coming from Laravel web framework, in Laravel there is Eloquent ORM (https://laravel.com/docs/5.4/eloquent-relationships)
It have some kind of magic with method like
whereHashasTo explain, laravel allow user to define relationship before it going to be use, and
whereHasis something like this:Will feature like that gonna be implement in diesel in the future? Thank you for reading this.