How to sort TextColumn by relationship date attribute?
Im trying it in 2 diff ways, both doesnt work:
* not using admin panel
in first way i get this error:
in second way:
doesnt crash but it just doesnt sort it
6 Replies
i also tried this way:
doesnt work, doesnt crash
if someone replies, id appreciate @ me please
@joe did you figure this out? sortable() doesnt allow closure, right?
https://github.com/filamentphp/filament/blob/df314c5c6e2ca0e98a9916d4139f649f043db6c8/packages/tables/src/Columns/Concerns/CanBeSortable.php#L19 ah, i think this was instructing my ide that clusures werent supported
GitHub
filament/packages/tables/src/Columns/Concerns/CanBeSortable.php at ...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
thanks for @ me, nah, didnt figured it out, just made it not sortable :/
np
yep. I wasnt able to get it working with a closure either. I will try ot let you know if i figure it out though. Wish it was more straight forward
okayy, thanks. @ me if so please (: