Custom Livewire widget giving "getSort doesn't exist" error
I'm trying to add my first custom Livewire widget to my admin panel. I've got one Eloquent query whose result is passed to the Blade view to be displayed in a table, but I just get an error that getSort doesn't exist.
.... what does this mean? I don't have much experience with Livewire and I'm not sure if that's what's tripping me up here. My widget extends the Component class and literally just has a render() method inside it.
Solution:Jump to solution
The problem was I was adding this in the ->widgets([]) of the Admin Panel Provider and it's not a widget so it doesn't have the getSort() method.
1 Reply
Solution
The problem was I was adding this in the ->widgets([]) of the Admin Panel Provider and it's not a widget so it doesn't have the getSort() method.