Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. public function cadastro()
  2. {
  3. return View('/cadastro');
  4. }
  5.  
  6. public function novo()
  7. {
  8. $user = AppUser::where('User',"=", Input::get("User"))->first();
  9.  
  10. $user->name = Input::get('name');
  11. $user->host = Input::get('host');
  12. $user->login = Input::get('login');
  13. $user->password = hash('sha256', Input::get('password'));
  14. $user->save($user);
  15.  
  16. }
  17.  
  18. Route::get('cadastro', 'AuthRegisterController@cadastro');
  19. Route::post('cadastro', 'AuthRegisterController@novo');
  20.  
  21. <body>
  22.  
  23. <section method="POST" action="cadastro/novo">
  24.  
  25. <nav class="navbar navbar-default navbar-static-top">
  26. <h1><b>CADASTRE SUA EMPRESA!</b></h1>
  27. <hr>
  28. </nav>
  29. <div id="area">
  30. <form id="formulario">
  31. <fieldset style = "width: 200%; margin: 0px auto;">
  32. <img src="/imagens/cliente.png" width="60px" height="60px" required/>
  33. <input type="text" name="name" class="name" placeholder="Nome:" required><br>
  34. <input type="text" name="host" class="host" placeholder="Host:" required><br>
  35. <input type="text" name="email" class="email" placeholder="Email:" required><br>
  36. <input type="password" name="password" class="senha" placeholder="Senha:" required>
  37. <legend><input type="submit" value="Cadastrar" onclick="return change(this);"/></legend>
  38. </fieldset>
  39. </form>
  40. </div>
  41.  
  42. </section>
  43.  
  44. <img class="canto" src="/imagens/unius.png"/>
  45.  
  46. <footer>
  47. <p>Desenvolvido por: Vitória</p>
  48. </footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement