Strange behavior with sort in views
Hello,
I have for exemple a public variable $events, filled by a simple eloquent call : $this->record->events()->orderBy('events.start_at', 'desc')->get();
On controller part, the order is good, if I die and dump on view, it's good but it seems, with the page hydration, I see a glitch and my results are not in the same order.
How can I manage that ?
Best regards,
Solution:Jump to solution
@Dennis Koch Thanks, I'm really disappointed as it was very very very basic ... π wire:key missing argument...
4 Replies
I ridiculously manage it by saved ids in an array and loop over the array ... I'm sure there is a better way.
Somebody has idea π€© ?
Maybe if you share some code. Where/How do you use that var?!
Solution
@Dennis Koch Thanks, I'm really disappointed as it was very very very basic ... π wire:key missing argument...