I have students and subjects table in many-to-many relation (pivot table is student_subject).
students
subjects
Student Model
public function s