Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function cadastro()
- {
- return View('/cadastro');
- }
- public function novo()
- {
- $user = AppUser::where('User',"=", Input::get("User"))->first();
- $user->name = Input::get('name');
- $user->host = Input::get('host');
- $user->login = Input::get('login');
- $user->password = hash('sha256', Input::get('password'));
- $user->save($user);
- }
- Route::get('cadastro', 'AuthRegisterController@cadastro');
- Route::post('cadastro', 'AuthRegisterController@novo');
- <body>
- <section method="POST" action="cadastro/novo">
- <nav class="navbar navbar-default navbar-static-top">
- <h1><b>CADASTRE SUA EMPRESA!</b></h1>
- <hr>
- </nav>
- <div id="area">
- <form id="formulario">
- <fieldset style = "width: 200%; margin: 0px auto;">
- <img src="/imagens/cliente.png" width="60px" height="60px" required/>
- <input type="text" name="name" class="name" placeholder="Nome:" required><br>
- <input type="text" name="host" class="host" placeholder="Host:" required><br>
- <input type="text" name="email" class="email" placeholder="Email:" required><br>
- <input type="password" name="password" class="senha" placeholder="Senha:" required>
- <legend><input type="submit" value="Cadastrar" onclick="return change(this);"/></legend>
- </fieldset>
- </form>
- </div>
- </section>
- <img class="canto" src="/imagens/unius.png"/>
- <footer>
- <p>Desenvolvido por: Vitória</p>
- </footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement