I have two tables, one I have the disciplines and the other I have the period_disciplines, filter effect in the course and period. I need to bring only the disciplines that are not released in the table of period_disciplines, so that the user can add these disciplines that are not released, could they explain to me how doesIn and whereNotIn of laravel works because I can not make it work, instead of it bringing me 5 which is correct it brings me just 3.
Follow the code
Period_disciplines:
Disciplines:
AcademicPeriods: