From 8b2035adef9690e1dc19d5907f57d435bdab7a05 Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Tue, 9 Jun 2015 21:43:32 +0200 Subject: [PATCH] Use new lists notation.. --- Repositories/Eloquent/EloquentBlockRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Repositories/Eloquent/EloquentBlockRepository.php b/Repositories/Eloquent/EloquentBlockRepository.php index 5e16887..3798a68 100644 --- a/Repositories/Eloquent/EloquentBlockRepository.php +++ b/Repositories/Eloquent/EloquentBlockRepository.php @@ -120,7 +120,7 @@ private function getExistingSlugs($slug) { $query = $this->model->where('name', 'LIKE', $slug . '%'); - $list = $query->lists('name', $this->model->getKeyName()); + $list = $query->lists('name', $this->model->getKeyName())->all(); return $list; }