laravel-activitylog icon indicating copy to clipboard operation
laravel-activitylog copied to clipboard

Object of class Illuminate\Support\Carbon could not be converted to int

Open BUGOVER opened this issue 1 year ago • 0 comments

Describe the bug When updating the model and inserting dates there throws an exception, "Object of class Illuminate\Support\Carbon could not be converted to int", on "vendor/spatie/laravel-activitylog/src/Traits/LogsActivity.php", line 313, method attributeValuesToBeLogged(),

activiti-log-2 activiti-log-1

Versions (please complete the following information)

  • PHP: 8.1.26
  • Database: mysql8.0.35
  • Laravel: 9.52.15
  • Package: spatie/laravel-activitylog

Exception Object of class Illuminate\Support\Carbon could not be converted to int.

Additional context Tries to compare a number to an Carbon object !

BUGOVER avatar Dec 15 '23 08:12 BUGOVER