Open SigalZ opened 2 years ago
Did you ever get sorting worting for a relationship, I'm facing the same thing and my table is just turning up empty whenever I sort by a relationship?
Hi @gbrits, Yes I did, I don't remember exactly how.
I think I created my own datatable classes and view where I do the db queries myself.
I can send you the files if you want.
Hello,
Thank you for this package.
I do have some issues though.
I have these tables: coffees, roast_types, green_beans.
In the Coffee model I have these relationships:
In the CoffeeTable component I have this query:
and these columns:
I have 2 problems:
When I click on sorting the Roast Type column the values in the Name column change to the Roast type name instead of the Coffee name.
When I click on sorting the Green Bean column, I get this error:
Missing required parameter for [Route: coffees.edit] [URI: coffees/{coffee}/edit] [Missing parameter: coffee]. (View: C:\wamp64\www\highland8.local\resources\views\admin\coffee\table_actions.blade.php)
What am I doing wrong?
BTW, I added some functionality like in the jquery dropdown tables, to show:
Can you please help with my issues?