mongolid icon indicating copy to clipboard operation
mongolid copied to clipboard

How use skip() as paginate?

Open NandoSantana opened this issue 3 years ago • 2 comments

Hello i need do paginate of data, but i don't know how use, have a fillable fields feature on model to ?

NandoSantana avatar Jul 06 '21 18:07 NandoSantana

Hello Nando, how are you?

We don't have a paginate() like Eloquent, but you can do for example: Product::all()->skip(10)->limit(10) This way you can paginate the way you want.

About the fillable. Yes, we have fillable and guarded fields.

diegofelix avatar Jul 15 '21 15:07 diegofelix

Nice, thnak you.

NandoSantana avatar Sep 28 '21 12:09 NandoSantana