https://laravel.com/docs/5.2/eloquent
There's also some "advanced wheres" somewhere in the documentation.
Thanks for reply me. But i want where clause in eloquent relationship that described above.
Try using whereHas, eg.
->whereHas('RelationshipName', function($query) {
$query('your-field', your-condition);
})
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community