Created
October 8, 2015 04:44
-
-
Save junrillg/4683e46b2ae170aba51d to your computer and use it in GitHub Desktop.
Laravel Login/Register Views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- resources/views/auth/login.blade.php --> | |
<form method="POST" action="/auth/login"> | |
{!! csrf_field() !!} | |
<div> | |
<input type="email" name="email" value="{{ old('email') }}"> | |
</div> | |
<div> | |
Password | |
<input type="password" name="password" id="password"> | |
</div> | |
<div> | |
<input type="checkbox" name="remember"> Remember Me | |
</div> | |
<div> | |
<button type="submit">Login</button> | |
</div> | |
</form> | |
<!-- resources/views/auth/register.blade.php --> | |
<form method="POST" action="/auth/register"> | |
{!! csrf_field() !!} | |
<div> | |
Name | |
<input type="text" name="name" value="{{ old('name') }}"> | |
</div> | |
<div> | |
<input type="email" name="email" value="{{ old('email') }}"> | |
</div> | |
<div> | |
Password | |
<input type="password" name="password"> | |
</div> | |
<div> | |
Confirm Password | |
<input type="password" name="password_confirmation"> | |
</div> | |
<div> | |
<button type="submit">Register</button> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment