Retornar JSON Response ID Nome de Eloquent All Laravel
$products = Product::all('id','name');
or
$products = Product::get(['id','name']);
or
$products = Product::pluck('id','name');
or
$products = Product::all()->pluck('name', 'id');
Snippets