shenka
4 years ago
69
10
General

Form model binding & Date & Carbon

Posted 4 years ago by shenka

Hi,

I can define an "Accessor" to format a date field (Carbon) coming from the database, and then, thanks to "Form Model Binding" that field shows up perfectly formatted in the form.

This is great, but, what if i need to play with that date with Carbon, for example, add one day. I mean, How can I have the best of both worlds, the Carbon object and the accessor for formatting the date on the Form model binding.

Thanks in Advance.

Please sign in or create an account to participate in this conversation.