Open ahmed-numaan opened 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'); });
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'); });