build-a-youtube-clone-in-laravel-and-vuejs icon indicating copy to clipboard operation
build-a-youtube-clone-in-laravel-and-vuejs copied to clipboard

after doing all it's fall ? the Model doesn't retrieve User object?

Open Adamkaram opened this issue 4 years ago • 0 comments

12 13

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

Adamkaram avatar Apr 15 '20 22:04 Adamkaram