stub of the row editor
This commit is contained in:
@@ -85,6 +85,10 @@ function old_json($name, $default) {
|
||||
|
||||
// Safe JSON funcs
|
||||
function toJSON($object) {
|
||||
if (!$object instanceof JsonSerializable && $object instanceof \Illuminate\Contracts\Support\Arrayable) {
|
||||
$object = $object->toArray();
|
||||
}
|
||||
|
||||
return \GuzzleHttp\json_encode($object, JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user