Site icon VR SoftCoder

Laravel relationship with multiple column

multiple column relationship in laravel, how we can do relationship in laravel with multiple column

multiple column relationship in laravel, how we can do relationship in laravel with multiple column

Laravel relationship with multiple column

In this tutorial we will learn how we can do relationship in laravel with multiple column. For this tutorial i have below code example. I hope you will understand the code or you can comment me below regarding any issue.

hasOne('Modules\Frontend\Models\SavedTeam','league_id','id')->where('user_id',Auth::user()->id)->orWhere('round_id','round_to_start')->with('getTeam');
    }

}
Exit mobile version