eloquest how to select one specific column in database example code

eloquest how to select one specific column in database example code

eloquest how to select one specific column in database example

eloquest how to select one specific column in database example in php

//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');
By Manish Salunke In php - Last Updated

Tags:

php

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99