📜  laravel 中的 all() - PHP 代码示例

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

代码示例2
all() is a static method on the Eloquent\Model.
All it does is create a new query object and call get() on it.
With all(), you cannot modify the query performed at all 
(except you can choose the columns to select by passing them as parameters).
get() is a method on the Eloquent\Builder object.