how to get all specific value from table in laravel code example
Example 1: eloquent all only one culomn
$collection = collect([
['product_id' => 'prod-100', 'name' => 'Desk'],
['product_id' => 'prod-200', 'name' => 'Chair'],
]);
$plucked = $collection->pluck('name');
$plucked->all();
// ['Desk', 'Chair']
Example 2: get single column value in laravel eloquent
Vehicle::find(3)->value('register_number');