Webpack
1
Вклад в тег
Document::with(['document_customs', 'document_templates'])
->withCount(['document_templates as for_sort' => function ($q) {
$q->select('field_order');
}])
->where('id', '=', $document->id)
->orderBy('for_sort', 'DESC')
->get();
window.App = function() {
return {
setAssetsPath: function(path) {
assetsPath = path;
},
};
}();
var assetsPath = "{{ asset("assets") }}";
jQuery(document).ready(function () {
App.setAssetsPath("{{ URL::asset("assets") }}/");
});