This commit is contained in:
2023-07-25 09:33:24 +08:00
parent 4c6dbc9b3c
commit 4abc1a621b
3 changed files with 288 additions and 275 deletions
+2 -2
View File
@@ -229,7 +229,7 @@ class Model extends Base\Model
*/
public static function get($condition): Collection|array
{
return static::query()->where($condition)->all();
return static::query()->where($condition)->get();
}
@@ -246,7 +246,7 @@ class Model extends Base\Model
if (!empty($attributes)) {
$query->bindParams($attributes);
}
return $query->all();
return $query->get();
}