🆙 More fixes 🆙
This commit is contained in:
1 parent
451b7edda3
commit
8d3115678c
10 files changed
+75
-21
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user