JeffreyWay / Laravel-Model-Validation

This Laravel package auto-validates a model on save.
https://packagist.org/packages/way/database
275 stars 54 forks source link

Allow child's saving events #41

Closed pdcmoreira closed 5 years ago

pdcmoreira commented 8 years ago

Returning anything from the validating() function, will stop further saving() calls to execute. So, if $model->validate() is false, false should be returned from saving() to prevent the model to be saved, otherwise nothing should be returned so futher (custom) saving() calls are allowed.