How to add combined unique fields validator rule in Laravel 4
问题 I am using Laravel 4.2 and mysql db . I have an exam table in which i am taking Exams entry and the fields are --> id | examdate | batch | chapter | totalmarks I have made a combined unique key using $table->unique( array('examdate','batch','chapter') ); in schema builder. Now I want to add a validation rule to it. I know i can add unique validation by laravel unique validator rule but the problem is ,it checks only for one field . I want it to add uniqueness to the 3 fields combined(user