pluck 2 columns laravel code example Example: laravel pluck multiple columns YourModelName::all('id', 'name');