I have this timestamp created_at
public function getCreatedAtAttribute($value)
{
return Carbon::parse($value)->format('M d, Y h:i:s');
}
How can I format this like Oct 9, 2021, at 1:23 pm with an at string?
1 Replies
You can add the string by escaping the characters:
return Carbon::parse($value)->format('M d, Y \a\t H:i');