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

Laravel relationship 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');
    }

}
Post Created 130

Leave a Reply

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top