How to Do following Query in Laravel Eloquent?
SELECT catID, catName, imgPath FROM categories WHERE catType = \"Root\"
I have tried followi
From laravel version 5.3^ lists() is deprecated and function pluck() is used instead.
lists()
pluck()
pluck() returns a collection and if you need a simple array just prepend ->toArray() to it.
->toArray()