From 0feb5cb082d991162d52e8a71eadb79de53d5b97 Mon Sep 17 00:00:00 2001 From: Eduardo Cruz Date: Wed, 11 Nov 2015 13:34:18 -0300 Subject: [PATCH] Updating the User Modal fillable attributes. Replacing name with first_name and last_name --- app/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index da3fbf5f6f3e..51f507fa4fef 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -29,7 +29,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon * * @var array */ - protected $fillable = ['name', 'email', 'password']; + protected $fillable = ['first_name', 'last_name', 'email', 'password']; /** * The attributes excluded from the model's JSON form. @@ -226,4 +226,4 @@ User::updating(function ($user) { User::updated(function ($user) { User::onUpdatedUser($user); -}); \ No newline at end of file +});