I have displayed checkboxes of subjects in laravel.In which some checkboxes are already checked ,come from database.When any checkbox is checked the new subject is added in database. The actual problem is that there are other subjects checkboxes that are not saved in database. The issue to resolve is that,when user uncheck any checkbox of subject which is saved in database should be deleted from database