MK | Programmer
Preventing Duplicate 'Active' Records in Model Using Filament
Yes, but I need a query so that this exception is related to the current school. For example: school_id = 1. I need it to search the table for everything in the SchoolDiar model and check if there already exists one with 'active' value 'Ativa'.
7 replies