Can i have more than 1 getter for my attribute in my Model.
I have a date and i would like to have it in both variations as a date and as a human readable format with Carbon
Now if i make this:
convert the UTC to human readable format
public function getCreatedAtAttribute($date){
Carbon::setLocale('de');
return Carbon::createFromFormat('Y-m-d H:i:s', $date)->diffForHumans();
}
I get it in human readable.
How to get the normal date?