Object of class Carbon\Carbon could not be converted to int
|Added at||2017-01-04 02:01|
I have already search for this, and i did find some topics discussing this problem, however none of which I felt like was the way I want to go, so therefore I hope to get a better sugestion here.
I want to get a timestamp from when a user was last updated.
If i run this, it gives me this error
This is because it returns a Carbon instance in Laravel 5.2, and I only need the timestamp.
How do i fetch the "date" from the carbon instance, so I only get
Hope for some pointers and suggestions