Level 70
Normally you need to define a new column in your model.
For example-
ModelName extends Model{
public $dates = ['brithday'];
...
Now you can call diffForHumans.
4 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a extra column called birthday.
Now I want to show diffForHumans() on that column. But when I try, it shows me error. Any solution?
Normally you need to define a new column in your model.
For example-
ModelName extends Model{
public $dates = ['brithday'];
...
Now you can call diffForHumans.
Please or to participate in this conversation.