/** * Display the password reset view for the given token. * * @param string $token * @return Response */ public function getReset($token = null) { if (is_null($token)) { \App::abort(404); } return \View::make('password.reset')->with('token', $token); }
public function show($id) { try { $orderLog = $this->orderLogRepo->findById($id); $currentUser = $this->auth->user(); if ($currentUser->id != $orderLog->changer_id && !$currentUser->hasAnyAccess(['orderlogs.view'])) { return $this->redirectTo('dash')->with('error_message', Lang::get("messages.permission_denied")); } $orderLogData = json_decode($this->orderLog->data); return $this->view('admin.pages.order_log.show', compact('orderLog', 'orderLogData', 'currentUser')); } catch (NotFoundException $e) { App::abort(404); } }
/** * @param $id * @return View */ public function edit($id) { try { $update = true; $group = $this->groupRepo->findById($id); return $this->view('admin.pages.group.edit', compact('update', 'group')); } catch (NotFoundException $e) { App::abort(404); } }