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
In all cases we are assuming that the response payload to pars with Styde\Enlighten\Models\ReplacesValues trait is either null or an object/array. But when we are returning just a plain string like:
returnresponse()->json('Unsubscription was successfully', 200);
You can reproduce this by returning this response from a tested controller.
We expect to see the json response message even if is only a plain text (and not an object or array).
(in the attached image you will see some ray() calls coz I was debugging it.
The text was updated successfully, but these errors were encountered:
In all cases we are assuming that the response payload to pars with
Styde\Enlighten\Models\ReplacesValues
trait is either null or an object/array. But when we are returning just a plain string like:You can reproduce this by returning this response from a tested controller.
We expect to see the json response message even if is only a plain text (and not an object or array).
(in the attached image you will see some
ray()
calls coz I was debugging it.The text was updated successfully, but these errors were encountered: