pull in related models
Closed this issue · 1 comments
mstnorris commented
I would like to pull in related models.
$users = Searchy::users('id', 'name', 'email')->with('profile')->query($q)->get();
// or
$users = Searchy::users('id', 'name', 'email')->query($q)->get();
$users->load('profile');
TomLingham commented
Do you mean to map it to an Eloquent Model? If so, see commit 8566a0a and let me know if that solves your problem.