Example #1
0
 /**
  * Create a new User model instance.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     /*
      * EAV Attributes
      */
     Attribute::firstOrCreate(['slug' => 'gender']);
     Attribute::firstOrCreate(['slug' => 'mobile']);
     // call parent constructor
     parent::__construct($attributes);
 }
Example #2
0
 public function __construct(array $attributes = [])
 {
     $this->loginNames = config('asgard.user.users.login-columns');
     $this->fillable = config('asgard.user.users.fillable');
     parent::__construct($attributes);
 }