build-a-youtube-clone-in-laravel-and-vuejs
build-a-youtube-clone-in-laravel-and-vuejs copied to clipboard
after doing all it's fall ? the Model doesn't retrieve User object?
my code commednt Model
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