{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"~admin/*": ["resources/area/admin/vue3/*"]
}
}
}
function template()
{
return $this->hasManyThrough(
DocumentTemplate::class,
DocumentCustom::class,
'document_id', 'field_code', 'id', 'field_code'
)->orderBy('document_templates.field_order');
}
$document = Document::with('template')
->where('id', '=', $document->id)
->get();