Home >Backend Development >PHP Tutorial >eloquent queries some fields

eloquent queries some fields

WBOY
WBOYOriginal
2016-07-06 13:51:171012browse

How to query some fields in a record instead of returning all

Reply content:

How to query some fields in a record instead of returning all

Model::select('id','name', ...)->get()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:About php object-orientedNext article:About php object-oriented