sleeping-owl / admin

Administrative interface builder for Laravel
http://sleeping-owl.github.io/
MIT License
503 stars 259 forks source link

Fix unique validation rule at record creation #277

Open Elyahou opened 8 years ago

Elyahou commented 8 years ago

The unique validation rule doesn't work when creating a new record.

We need to check that the record is new or is updated by checking the exists attribute and not the exists function that just check if there is any record in the relevant table.