protected function afterSave()
    {
        $this->brokenAfterSave = false;

        foreach (\Request::except('_token') as $key => $value) {

            // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful
            if (method_exists($this->model, $key) && is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\Relation')) {
                $this->saveRelation('afterSave', $key, $value);
            }
        }
    }
protected function afterSave()
    {
        $this->brokenAfterSave = false;

        foreach (\Request::except('_token') as $key => $value) {

            // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful
            if (method_exists($this->model, $key) && is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\Relation')) {
                $this->saveRelation('afterSave', $key, $value);
            }
        }
    }
protected function afterSave ( ) { $ this -> brokenAfterSave = false ; foreach ( \ Request :: except ( '_token' ) as $ key => $ value ) { // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful if ( method_exists ( $ this -> model , $ key ) && is_a ( call_user_func_array ( [ $ this -> model , $ key ] , [ ] ) , 'Illuminate\Database\Eloquent\Relations\Relation' ) ) { $ this -> saveRelation ( 'afterSave' , $ key , $ value ) ; } } }
Method fired after the Save action is complete.

@return
Method fired after the Save action is complete .