kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

Method Illuminate\Database\Eloquent\Collection::lists does not exist. #232

Open ahmed-numaan opened 5 years ago

ahmed-numaan commented 5 years ago

I have Laravel 5.8 and getting this error below:

Method Illuminate\Database\Eloquent\Collection::lists does not exist.

On the following piece of code:

Route::group([ 'middleware' => ['acl'], 'is' => 'super-admin' ], function () { Route::get('/plants','PlantsController@index'); Route::get('/plants/{id}/edit','PlantsController@edit'); Route::get('/plants/{id}','PlantsController@show'); Route::get('/plants-datatable','PlantsController@listDataTable'); Route::get('/plant-delete/{id}','PlantsController@destroy'); });