/**
  * @inheritDoc
  */
 public function save(InstanceInterface $model)
 {
     return $model->save();
 }
Example #2
0
 /**
  * Handle an error with page update
  *
  * @param  InstanceInterface $instance
  * @param  Validator      $validator
  * @return Redirect::route
  */
 public function updateFailed(InstanceInterface $instance, Validator $validator)
 {
     return Redirect::route('pages.edit', $instance->identity())->withInput()->withErrors($validator->errors())->with('message', 'Oops, there was an error');
 }