From 1cc6deabec4362c048cca0373e7312bed9c0a13a Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Wed, 1 Nov 2017 13:22:16 +0100 Subject: [PATCH] using blade @json directive to parse raw json into frontend` --- framework/core/views/app.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/views/app.blade.php b/framework/core/views/app.blade.php index 2f98cb715..89e94ad36 100644 --- a/framework/core/views/app.blade.php +++ b/framework/core/views/app.blade.php @@ -49,7 +49,7 @@ if (module.default) module.default(app); } - app.boot({!! json_encode($payload) !!}); + app.boot(@json($payload)); @if (! $debug) } catch (e) { window.location += (window.location.search ? '&' : '?') + 'nojs=1';