0
I’m with the following Query
in Laravel 7.
$itens_carros_melhores_ofertas = Veiculo::where('status', 1)
->orderBy('ano', 'DESC')
->limit(6,9)
->get();
The problem: I need to display the next records, excluding the first three pick up. I think: 3,9
, would search for the next 6 records, but that’s not how he behaves, what can I do?
Reason for negativity?
– Sr. André Baill
Good wasn’t that I negative, you want to take what from the table?
– novic
novic Obg, then. I have 9 records. In my first query, I have 0.3. I need to search +6 records, out of these 3. In case, 3.9, I think.
– Sr. André Baill
I couldn’t use the
skip(3)
, since you want to ignore the first three?– Woss
I don’t know friend @Woss, I’m new in Laravel (about 30 days I’m using), I used 5 years Codeigniter.
– Sr. André Baill
which version of Laravel? is 3.9 even or maybe 4.9 depends on the bank
– novic
novic woss: I solved with Skip(3), but the version I’m using of Laravel is 7.3
– Sr. André Baill
Do I exclude the question, or can they include an answer to stay for others? I thank you both.
– Sr. André Baill
Don’t exclude the Question, see the answers and move on, further improving your questions
– novic
Okay, I really appreciate @novic
– Sr. André Baill