using blade @json directive to parse raw json into frontend`

This commit is contained in:
Daniel Klabbers 2017-11-01 13:22:16 +01:00
parent 5a99f13f3f
commit 1cc6deabec

View File

@ -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';