get single column value in laravel eloquent
snippet in php

eloquent all only one culomn

user8636

$collection = collect([
    ['product_id' => 'prod-100', 'name' => 'Desk'],
    ['product_id' => 'prod-200', 'name' => 'Chair'],
]);

$plucked = $collection->pluck('name');

$plucked->all();

// ['Desk', 'Chair']

get single column value in laravel eloquent

user7439

Vehicle::find(3)->value('register_number');