📌  相关文章
📜  laravel eloquent 获取专栏 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.935000             🧑  作者: Mango

代码示例1
//return array of json
Model::where('id', 1)->get(['column1','column2']);
or
Model::all(['column1']);
//return array
Model::whereNull('deleted_at')->pluck('column1');