Closed zhuzhichao closed 9 years ago
$this->model->count(); SQL: SELECT count(*) as aggregate FROM "comments"
$this->model->all()->count(); SQL: SELECT * FROM "comments";
For a strange reason this wasn't working on L5 prerelease but now it's ok.
$this->model->count(); SQL: SELECT count(*) as aggregate FROM "comments"
$this->model->all()->count(); SQL: SELECT * FROM "comments";