krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Overriding model rules #60

Open sergiocastrovale opened 9 years ago

sergiocastrovale commented 9 years ago

I'm using Bauhaus in a fairly large project and I can't find a way (at least in the docs / google) to do this.

When editing a field in my User, two things happen: I'm getting an error because I didn't fill the password, and I'm getting an error due to my email being unique. I think this is a fairly common issue with everyone that needs to edit users in your backoffice as opposed to create an account on the regular site.

How can I solve this? Or better yet, is there any means to override the default rules? I'm having some trouble understanding how we can "customize" things i.e. use what's in $mapper, change it, and continue the automated process.