(Refactoring) Forum Controller: fix query n + 1 problem

This commit is contained in:
Viktor Mazur
2020-04-26 22:37:46 +03:00
parent d0cb5ebc6a
commit bdfa9b578a
3 changed files with 8 additions and 6 deletions
+4
View File
@@ -81,6 +81,10 @@ class Topic extends Model
{
use Auditable;
protected $casts = [
'last_reply_at' => 'datetime',
];
/**
* Belongs To A Forum.
*