🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 21:04:53 +01:00
parent 451b7edda3
commit 8d3115678c
10 changed files with 75 additions and 21 deletions
@@ -11,11 +11,17 @@ class WebsiteArticleComment extends Model
{
protected $guarded = ['id', 'created_at', 'updated_at'];
/**
* @return BelongsTo<WebsiteArticle, $this>
*/
public function article(): BelongsTo
{
return $this->belongsTo(WebsiteArticle::class, 'article_id');
}
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);