rapyd-laravel
rapyd-laravel copied to clipboard
Preprocess, Observer ?
I am trying to figure out how do something with the saved model before or after data are persisted in database (it does not matter as long as I know what was the model values before and after ).
I though about using an Observer but I need to know the action was made from Panel.
I overrided process but model original values are already updated at this point.
class MyUserDataEdit extends \Zofe\Rapyd\DataEdit\DataEdit
{
protected function process() {
// do something with $this->model
parent::process();
}
Any idea where I can do that?
The easiest thing is to use YourModel::saving() and YourModel::saved();
@tacone Actually it won't help because I need to know the action was made from Panel.
ping @zofe