/** * Add the user and show success! * * @return Response */ public function postUser() { $messages = $this->users->validForCreation(Input::get('first_name'), Input::get('last_name'), Input::get('email'), Input::get('password')); if (count($messages) > 0) { return Redirect::back()->withErrors($messages)->with('install_errors', true); } $user = $this->users->create(Input::get('first_name'), Input::get('last_name'), Input::get('email'), 1, Input::get('password')); return Redirect::to('install/config'); }
/** * Get the main admin view. */ public function index() { return View::make('core::admin.index')->with('users', $this->users->all())->with('user', $this->auth->user())->with('locale', $this->loadLanguage()); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $this->users->delete($id); return Response::json(array('success')); }
/** * Get the main admin view. */ public function getIndex() { return View::make('admin.index')->with('users', $this->users->all())->with('user', Auth::user())->with('locale', $this->loadLanguage()); }