bosnadev / repository

Laravel Repositories is a package for Laravel 5 which is used to abstract the database layer. This makes applications much easier to maintain.
https://bosnadev.com
825 stars 235 forks source link

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

Open jrean opened 7 years ago

jrean commented 7 years ago

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