laravel model particular column
snippet in php

laravel eloquent get only field name

user1439

//Eloquent: Get specific columns (not all the row). Pluck returns an array.
Model::where('id', 1)->pluck('name', 'surname');
// If you only want to get the result value:
Model::where('id', 1)->value('name');

laravel model particular column

user5089

Table::select('column1', 'column2')
            ->where('checker', 'value')
            ->get();

eloquest how to select one specific column in database

user7733

ModelName::find($id, ['name', 'surname']);