F
Filamentβ€’11mo ago
Arnaud

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:
@Dennis Koch Thanks, I'm really disappointed as it was very very very basic ... πŸ˜– wire:key missing argument...
Jump to solution
4 Replies
Arnaud
ArnaudOPβ€’11mo ago
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 🀩 ?
Dennis Koch
Dennis Kochβ€’11mo ago
Maybe if you share some code. Where/How do you use that var?!
Solution
Arnaud
Arnaudβ€’11mo ago
@Dennis Koch Thanks, I'm really disappointed as it was very very very basic ... πŸ˜– wire:key missing argument...
Want results from more Discord servers?
Add your server