select column with id laravel code example
Example 1: get single column value in laravel eloquent
Vehicle::find(3)->value('register_number');
Example 2: eloquent get only some columns
Table::select('name','surname')->where('id', 1)->get();
Vehicle::find(3)->value('register_number');
Table::select('name','surname')->where('id', 1)->get();