You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
I'm using a legacy schema that won't be modified. A uuid column named "CreatedBy" does not contain "id" or "uuid", so getRelatedBinaryKeyName doesn't return the attribute with suffix. Commenting out the preg_match line and just returning "{$attribute}{$suffix}" fixes the issue:
Since the CreatedBy column is provided in the model's $uuids array, should getRelatedBinaryKeyName really be doing that check for "uuid" or "id"? If so, could this be made to be conditional based on a config setting?
The exception is thrown from here in Illuminate/Http/JsonResponse.php:
if (! $this->hasValidJson(json_last_error())) {
thrownewInvalidArgumentException(json_last_error_msg());
}
I'm using a legacy schema that won't be modified. A uuid column named "CreatedBy" does not contain "id" or "uuid", so
getRelatedBinaryKeyName
doesn't return the attribute with suffix. Commenting out thepreg_match
line and just returning"{$attribute}{$suffix}"
fixes the issue:Since the CreatedBy column is provided in the model's
$uuids
array, shouldgetRelatedBinaryKeyName
really be doing that check for "uuid" or "id"? If so, could this be made to be conditional based on a config setting?The exception is thrown from here in Illuminate/Http/JsonResponse.php:
Exception:
InvalidArgumentException. Malformed UTF-8 characters, possibly incorrectly encoded
The text was updated successfully, but these errors were encountered: