From 194788cc4dfd24e5d9328ab36dcec679f04493b3 Mon Sep 17 00:00:00 2001 From: optik Date: Wed, 16 Dec 2015 09:38:13 +0100 Subject: [PATCH] Config vars ineffective when creating with attributes When instantiated with an array of attributes, User constructor will not take 'fillable' and 'login-columns' config settings into account - the 'fill' method will be called before the instance properties are overwritten with custom ones. --- Entities/Sentinel/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Entities/Sentinel/User.php b/Entities/Sentinel/User.php index 594f0a5..07bcc1c 100644 --- a/Entities/Sentinel/User.php +++ b/Entities/Sentinel/User.php @@ -27,10 +27,10 @@ class User extends EloquentUser implements UserInterface public function __construct(array $attributes = []) { - parent::__construct($attributes); - $this->loginNames = config('asgard.user.users.login-columns'); $this->fillable = config('asgard.user.users.fillable'); + + parent::__construct($attributes); } /**