Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
8ce0d263
Commit
8ce0d263
authored
Dec 01, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set fillable array.
parent
cb484a9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
app/Services/Registrar.php
+1
-1
app/User.php
+7
-0
No files found.
app/Services/Registrar.php
View file @
8ce0d263
...
@@ -29,7 +29,7 @@ class Registrar implements RegistrarContract {
...
@@ -29,7 +29,7 @@ class Registrar implements RegistrarContract {
*/
*/
public
function
create
(
array
$data
)
public
function
create
(
array
$data
)
{
{
return
User
::
forceC
reate
([
return
User
::
c
reate
([
'name'
=>
$data
[
'name'
],
'name'
=>
$data
[
'name'
],
'email'
=>
$data
[
'email'
],
'email'
=>
$data
[
'email'
],
'password'
=>
bcrypt
(
$data
[
'password'
]),
'password'
=>
bcrypt
(
$data
[
'password'
]),
...
...
app/User.php
View file @
8ce0d263
...
@@ -18,6 +18,13 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
...
@@ -18,6 +18,13 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
protected
$table
=
'users'
;
protected
$table
=
'users'
;
/**
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected
$fillable
=
[
'name'
,
'email'
,
'password'
];
/**
* The attributes excluded from the model's JSON form.
* The attributes excluded from the model's JSON form.
*
*
* @var array
* @var array
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment