laravel select columns from table code example
Example: eloquest how to select one specific column in database
Model::where('id', 1)
->pluck('name', 'surname')
->all();
Model::where('id', 1)
->pluck('name', 'surname')
->all();