Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
laravel-blog
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 16798fae
authored
Sep 08, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Change Custom Authentication
1 parent
cd9b2dc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletions
app/Http/Controllers/Auth/RegisterController.php
app/User.php
resources/views/auth/register.blade.php
app/Http/Controllers/Auth/RegisterController.php
View file @
16798fa
...
...
@@ -66,6 +66,8 @@ class RegisterController extends Controller
'name'
=>
$data
[
'name'
],
'email'
=>
$data
[
'email'
],
'password'
=>
$data
[
'password'
],
'username'
=>
$data
[
'username'
],
'dob'
=>
$data
[
'dob'
],
]);
}
}
app/User.php
View file @
16798fa
...
...
@@ -15,7 +15,7 @@ class User extends Authenticatable
* @var array
*/
protected
$fillable
=
[
'name'
,
'email'
,
'password'
,
'name'
,
'email'
,
'password'
,
'username'
,
'dob'
];
/**
...
...
resources/views/auth/register.blade.php
View file @
16798fa
...
...
@@ -24,6 +24,34 @@
</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' : '' }}"
>
<label
for=
"email"
class=
"col-md-4 control-label"
>
E-Mail Address
</label>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment