mercredi 27 février 2019

How to check if table is already joined in Laravel Query Builder

I created a query. I want to join my table with students table:

$query->leftJoin('students', 'learners.student_id', '=', 'students.id');

But I don't know my table joined before or not. How should I do that?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire