You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
belongsTo('App\News');
}
public function getRepliesCountAttribute()
{
return $this->replies->count();
}
public function votes()
{
return $this->morphMany('App\Vote', 'voteable');
}
public function user()
{
return $this->belongsTo('App\User');
}
public function replies()
{
return $this->hasMany('App\Comment', 'comment_id')->whereNotNull('comment_id');
}
}
my code in vue js
my code
belongsTo('App\News'); } public function getRepliesCountAttribute() { return $this->replies->count(); } public function votes() { return $this->morphMany('App\Vote', 'voteable'); } public function user() { return $this->belongsTo('App\User'); } public function replies() { return $this->hasMany('App\Comment', 'comment_id')->whereNotNull('comment_id'); } } my code in vue jscommednt Model
{{ comment.user.name }}
{{ comment.body }}The text was updated successfully, but these errors were encountered: