I'm using the following
protected $dates = ['date'];
protected $dateFormat = 'm/d/Y';
. So, what I expect is when I do: $model->date = "10/16/1991" it stores that date inside Carbon (And that is what happens), the problem is, when I do {{$model->date}} on a view, it prints: 1991-10-16 01:06:14.
What I try until now?, I try to change the function getDateAttribute, but I do want to return a Carbon instance instead of just a string.
So, what could solve my problem is if I could tell carbon that, when the carbon instance is printed it use an especific format.
Why? I want to avoid using {{$model->date->format('m/d/Y')}} in the view and just use {{$model->date}} but with the latter returning a carbon instance.