CP Listing: show relationships and format columns #230
-
Hi, What are all the config options for showing related collections/models and how do I specify how a certain value should be formatted (for example transform a complete datetime value into a date) on the CP listing? Maybe the documentation can be extended a little bit to accomodate this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! I've just left a comment on your other discussion where you've asked a similar-ish question. I'll see what I can do in terms of improving the documentation around this for others.
In this particular case, you shouldn't need to format this yourself. Can you try adding the Maybe also try ensuring the field is cast to |
Beta Was this translation helpful? Give feedback.
Hey!
I've just left a comment on your other discussion where you've asked a similar-ish question.
I'll see what I can do in terms of improving the documentation around this for others.
In this particular case, you shouldn't need to format this yourself. Can you try adding the
time_enabled: false
config setting to your Date field and see if that helps?Maybe also try ensuring the field is cast to
date
, rather thandatetime
in your Eloquent model.