Commit 16798fae by hfpp2012 yinsigan

Change Custom Authentication

1 parent cd9b2dc6
...@@ -66,6 +66,8 @@ class RegisterController extends Controller ...@@ -66,6 +66,8 @@ class RegisterController extends Controller
'name' => $data['name'], 'name' => $data['name'],
'email' => $data['email'], 'email' => $data['email'],
'password' => $data['password'], 'password' => $data['password'],
'username' => $data['username'],
'dob' => $data['dob'],
]); ]);
} }
} }
...@@ -15,7 +15,7 @@ class User extends Authenticatable ...@@ -15,7 +15,7 @@ class User extends Authenticatable
* @var array * @var array
*/ */
protected $fillable = [ protected $fillable = [
'name', 'email', 'password', 'name', 'email', 'password', 'username', 'dob'
]; ];
/** /**
......
...@@ -24,6 +24,34 @@ ...@@ -24,6 +24,34 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
<label for="username" class="col-md-4 control-label">UserName</label>
<div class="col-md-6">
<input id="username" type="text" class="form-control" name="username" value="{{ old('username') }}" required autofocus>
@if ($errors->has('username'))
<span class="help-block">
<strong>{{ $errors->first('username') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('dob') ? ' has-error' : '' }}">
<label for="dob" class="col-md-4 control-label">Dob</label>
<div class="col-md-6">
<input id="dob" type="date" class="form-control" name="dob" value="{{ old('dob') }}" required autofocus>
@if ($errors->has('dob'))
<span class="help-block">
<strong>{{ $errors->first('dob') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label> <label for="email" class="col-md-4 control-label">E-Mail Address</label>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!