samedi 29 juillet 2017

Mysql - Get count of rows from table with offset

I am working on laravel project. I want to get total number of rows from table with offset.Like how many records are there after skipping first 10 records. I am trying to get this by,

$count = Post::skip(10)->count();

But it gives me mysql syntax error. It would be nice if you can even help me with raw mysql query. Thanks!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2u6AwnR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire