📜  laravel eloquent 到数组键值 - PHP 代码示例

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

代码示例3
$roles = Role::all()->keyBy('name');