现在在PageController上显示
public function getBlazeTalent() {
$contestars = DB::table('contests')->where('user_id', Auth::id())->get();
return view('blazetalent')->withContestars($contestars);
}
但是我想显示当前的用户信息以及其他竞赛者(用户)信息。
竞赛模型
public function user() {
return $this->belongsTo('BlazeChannel\User');
}