Replies: 1 comment 3 replies
-
|
What's the situation that you need to hide the column name? (just curious, I think this is a good idea) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I want to avoid exposing my DB column name to the user in the URL when they sort the column, the best workaround I came up with is to create an "alias" attribute on my Eloquent model:
Then manually specify an Eloquent query to sort the column:
It would be more convenient if there were an alias function like so:
Beta Was this translation helpful? Give feedback.
All reactions