afoysal
1 year ago
4384
4
Eloquent

Multiple condition Laravel join()

Posted 1 year ago by afoysal

How to add multiple condition in Laravel join() ? like

Post::has('comments.votes')->join('tafsir_ahbayan', 'tafsir_ahbayan.surah_id', '=', 'quran.surah_id'  // I would like to add more conditions here)->get();

Please sign in or create an account to participate in this conversation.