kkhicher1
1 month ago
101
3
Laravel

Based on 2 Columns diff Value 3rd Column Value can be Same

Posted 1 month ago by kkhicher1

I'm working on School management project. I want to add student information with class, section and roll no. i facing issue of unique value of roll no. check table below

| class | section | roll no | should be | |:------- :|:--------- :|:---------:|:--------------: | | 1 | 1 | 1 | store | | 2 | 1 | 1 | store | | 3 | 2 | 1 | store | | 1 | 2 | 1 | store | | 1 | 1 | 1 | return error | | 2 | 1 | 1 | return error |

i want add code in controller...

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