belongsTo('App\User', 'user_id', 'id'); } public function category() { return $this->belongsTo('App\BlogCategory', 'blog_category_id', 'id'); } }