Skip to content
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

Get only one column #44

Closed
Melcus opened this issue Nov 29, 2016 · 0 comments
Closed

Get only one column #44

Melcus opened this issue Nov 29, 2016 · 0 comments

Comments

@Melcus
Copy link

Melcus commented Nov 29, 2016

I have this query

  $other = Company::search()
                ->geoDistance('location', 22000, $center)
                ->mustNot()
                ->match('new_slug', $slug)
                ->sortby('dishes_count', 'desc')
                ->size(50)
                ->get()->hits()->pluck('id')->toarray();

It's working nice and all, only when I get the companies, I get it with all the relations as well, and those relations have translates and so on. Is there a way to get only the id's of the companies without all the other trash?

@Melcus Melcus closed this as completed Dec 9, 2016
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

No branches or pull requests

1 participant