$products = Product::all('id','name'); or $products = Product::get(['id','name']); or $products = Product::pluck('id','name'); or $products = Product::all()->pluck('name', 'id');