public function destroy($id) { if ($id == 'me') { $id = \Auth::user()->id; } \UserDriver::delete($id); return \Redirect::route('admin.users.index'); }
public function updatePassword() { $id = \UserDriver::loggedIn()->id; $data = \Input::all(); try { $user = \UserDriver::changePassword($id, $data['old'], $data['new'], $data['confirm']); } catch (\Exception $e) { return \Redirect::route('me.settings.edit')->withErrors(['error' => $e->getMessage()])->withInput(); } return \Redirect::route('me.index'); }
public function index() { $user = \UserDriver::loggedIn(); $this->layout->title = trans('me.Dashboard'); $this->layout->content = \View::make('me.dashboard.index', compact('user')); }