mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
using blade @json directive to parse raw json into frontend`
This commit is contained in:
parent
5a99f13f3f
commit
1cc6deabec
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user