I am trying to get the number of results with
$total = $this->query->getCountForPagination();
And instead of receiving an (int) like I see on the documentation, a object(Illuminate\Database\Eloquent\Builder) is returned
The function is called from Query/Builder.php class which returns an int .. but I think it gets converted somehow along the way.
Any reason for that ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2E4IFTG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire