First of all the date shouldn't be a 'string' type. However if that works for you fine.
You could put this in your model.
protected $dateFormat = 'Y-d-m';
Or whatever the format you're using.
Ive tried protected $dateFormat = 'd-m-Y H:i:s';
But it gave me a mysql error. Seems like mysql cant like that format then :S
Check this out I think this is exactly what you need.
https://laracasts.com/discuss/channels/general-discussion/how-to-carbonparse-in-ddmmyyyy-format
Through our experts, we offer all kinds of Psychology Writing Services and Psychology Coursework Writing Help to suit the need of every student when they are given any Psychology Research Paper Writing Services. https://researchpapers247.com/psychology-writing-services/
When students seek our Psychology Writing Services from us, they are assured to receive Custom Psychology Writing Services that meets all their writing needs and Online Psychology Writing Services one that has been written following all the instructions. https://www.meldaresearch.com/psychology-writing-services/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community