1//Eloquent: Get specific columns (not all the row). Pluck returns an array.
2Model::where('id', 1)->pluck('name', 'surname');
3// If you only want to get the result value:
4Model::where('id', 1)->value('name');
1 $result = DB::Table('table_name')->select('column1','column2')->where('id',1)->get();