laracasts-livewire-datatable icon indicating copy to clipboard operation
laracasts-livewire-datatable copied to clipboard

ContactsTable.php does not work in MySQL

Open sugie opened this issue 5 years ago • 2 comments

If you change DB_CONNECTION to mysql "select * from contacts order by `` asc limit 10 offset 0 " is issued. order by is empty. It works with sqlite but not with MySQL. I think it is good to set the initial value.

app/Http/Livewire/ContactsTable.php Line 13 public $ sortField = 'id';

sugie avatar Nov 27 '19 03:11 sugie

+

abakanindex avatar Dec 09 '19 05:12 abakanindex

Ah, very nice - maybe submit a Pull Request? Thanks!

calebporzio avatar Dec 12 '19 10:12 calebporzio