Ejemplo n.º 1
0
 /**
  * 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');
 }
Ejemplo n.º 2
0
 /**
  * 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());
 }
Ejemplo n.º 3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->users->delete($id);
     return Response::json(array('success'));
 }
Ejemplo n.º 4
0
 /**
  * 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());
 }