perf: use eloquent queries when possible (monicahq/chandler#219)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user