Get the difference in a human readable format.
public diffForHumans ( Carbon\Carbon $since = null, boolean $absolute = false, $short = false ) : string | ||
$since | Carbon\Carbon | |
$absolute | boolean | Removes time difference modifiers ago, after, etc |
리턴 | string |
public function getDataPostagemDiffAttribute() { $date = new Date($this->created_at); return $date->diffForHumans(); }