While trying to get relation BelongsTo which foreign keys are casted to Enum cause this error:
"message": "Object of class CatalogEnum could not be converted to string",
"exception": "Error",
"file": "/var/www/html/vendor/awobaz/compoships/src/Database/Eloquent/Relations/BelongsTo.php",
"line": 240,
While trying to get relation BelongsTo which foreign keys are casted to Enum cause this error:
Please help me.