/** * Handle the creation of a tag. * * @return \Illuminate\Http\RedirectResponse */ public function postIndex() { $userid = $this->users->findById(\Input::get('userid')); $userid->active_account = \Input::get('active_account'); $userid->save(); $users = $this->users->findAllPaginated(); /////////////////////////////////// if (\Input::get('active_account') == 1) { if (!empty(\Input::get('emailcompany'))) { \Mail::queue('emails.auth.companyNotification', array('msg' => \Lang::get('emails.welcomelogin')), function ($message) { $message->to(\Input::get('emailcompany'))->subject(\Lang::get('emails.newCompany')); }); } ////////////////// } $this->view('admin.users.list', compact('users')); }