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

Call to undefined method Illuminate\Database\Query\Builder::lists() #91

Open
jrean opened this issue Dec 6, 2016 · 0 comments
Open

Comments

@jrean
Copy link

jrean commented Dec 6, 2016

Laravel 5.3

$collection = $this->repos->lists('xxx', 'xx')->toArray();

Outputs:

BadMethodCallException in Builder.php line 2448:
Call to undefined method Illuminate\Database\Query\Builder::lists()

This method is depracted since 5.2
https://laravel.com/api/5.2/Illuminate/Database/Query/Builder.html

lists(string $column, string|null $key = null) deprecated
Alias for the "pluck" method.

It has been replaced by pluck

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