protected function createRedirect($data) { $redirect = OldURLRedirect::create(); $redirect->update($data); $redirect->write(); return $redirect; }