belongsTo('App\User', 'id', 'userID'); } public function application() { return $this->belongsToMany('App\Application', 'votes_has_application'); } }