PetroGromovo's avatar

How to multiply number of rows in result set Testing pagination

Hello, Testing pagination in laravel 5 app with request

$modelsList = Model
    ::getByStatus('A')
    ->get();

I have difficulties as there are too few data in Model table. If there is a way with eloquent/collection to multiply number of rows in result set with less code as possible and easy to return ?

Ex : In my case I got 5 rows, as the app is at dev stage with some default data from migration. but I would easily have, 50, 200, 500 rows.

Thanks!

0 likes
2 replies

Please or to participate in this conversation.