mardi 13 novembre 2018

How to use or condition in left join in laravel?

I need to write OR condition in leftjoin query in laravel. How to do it? I want to add OR condition in left join : interest_request.to_user_id = profiles.profile_id

 $interest_accept = DB::table('interest_request')->select('profiles.profile_id','profiles.first_name')->leftjoin('profiles','interest_request.sender_id' , '=','profiles.profile_id')->get(); 



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire