perf: use eloquent queries when possible (monicahq/chandler#219)

This commit is contained in:
Alexis Saettler
2022-09-14 23:19:28 +02:00
committed by GitHub
parent 62978faf21
commit 3fa0691453
19 changed files with 329 additions and 184 deletions
+2 -1
View File
@@ -108,6 +108,7 @@ class Module extends Model
*/
public function templatePages(): BelongsToMany
{
return $this->belongsToMany(TemplatePage::class, 'module_template_page')->withTimestamps();
return $this->belongsToMany(TemplatePage::class, 'module_template_page')
->withTimestamps();
}
}