This commit is contained in:
2025-08-16 15:38:07 +03:00
parent 11dabec67e
commit d709de39dc
7 changed files with 154 additions and 84 deletions
+5
View File
@@ -21,4 +21,9 @@ class Topic extends Model
'views_no',
'replies_no',
];
public function author()
{
return $this->belongsTo(\App\Models\User::class, 'user_id');
}
}