hasOne(User::class,'uid','uid'); } public function type() { return $this->hasOne(FeedBackCategory::class,'feedback_category_id','type'); } }