I've used the query builder instead of the normal select(I had to, I have added pagination). query builder example :
$dataGlobal = DB::table('articles')
->orderBy('articleDate', 'desc')
->orderBy('articleHour', 'desc')
->orderBy('articleMinute', 'asc')
->orderBy('articleSeconde', 'asc')
->limit(150)
->paginate(15);
With this code, normally I shoud have 10 pages no more, but instead of the 10 pages I have 23. Counting from page 5 to 23, all of these pages aren't working with this error code; Undefined array key 0
For the pagination I'm using the bootstrap 5 blade pagination (vendor folder)
My question is why am I having all of theese pages ? The weird thing is I have this problem in one page only which is my home page, but in the other ones I don't have this problem at all everything is good
Maybe I didn't give enought details let me know if you guys need me to add something.