Я хочу получить разницу между этими двумя запросами, но, похоже, это не работает.
[
{"subjectcodeco":"BIO 111","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"BIO 112","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"BIO 113","subjectunitco":2,"subjectvalueco":"C"},
{"subjectcodeco":"BIO 114","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"BIO 115","subjectunitco":2,"subjectvalueco":"C"},
{"subjectcodeco":"CHE 111","subjectunitco":2,"subjectvalueco":"C"},
{"subjectcodeco":"CHE 112","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"CHE 113","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"CHE 114","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"EDU 112","subjectunitco":2,"subjectvalueco":"C"},
{"subjectcodeco":"EDU 113","subjectunitco":2,"subjectvalueco":"C"},
{"subjectcodeco":"GSE 111","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"GSE 112","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"GSE 113","subjectunitco":1,"subjectvalueco":"C"},
{"subjectcodeco":"EDU 111","subjectunitco":1,"subjectvalueco":"C"}
]
и это
[
{"matricno":"15\/1011","subjectcodeco":"BIO 111","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"BIO 112","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"BIO 113","subjectunitco":2,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"BIO 114","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"BIO 115","subjectunitco":2,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"CHE 111","subjectunitco":2,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"CHE 112","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"CHE 113","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"CHE 114","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"EDU 111","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"EDU 112","subjectunitco":2,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"EDU 113","subjectunitco":2,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"GSE 111","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"GSE 112","subjectunitco":1,"subjectvalueco":"C"},
{"matricno":"15\/1011","subjectcodeco":"GSE 113","subjectunitco":1,"subjectvalueco":"C"}
]
Я пытался использовать коллекцию laravel diffAssocи diffKeys, похоже, ни один из них не работает.