Exemplo 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');
 }
Exemplo n.º 2
0
 /**
  * Get the main admin view.
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     return View::make('cabinet::admin.index')->with('posts', $this->posts->all())->with('users', $this->user->all())->with('user', \Auth::user())->with('locale', $this->loadLanguage());
 }