'float', 'active' => 'int', 'network_id' => 'int', 'group_id' => 'int', 'balance_credit' => 'float', 'balance_epargne' => 'float', 'balance_nano_health' => 'float', 'id_bank_country' => 'int' ]; protected $dates = [ 'expiration_date', 'date_modified', 'date_created', 'date_adhesion' ]; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = [ 'encrypted_password' ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'uid', 'firstname', 'lastname', 'phone', 'email', 'user_code', 'numero_carte', 'expiration_date', 'adresse', 'solde', 'encrypted_password', 'salt', 'validation_code', 'active', 'date_modified', 'date_created', 'group_id', 'balance_credit', 'balance_epargne', 'balance_nano_health' => 'float', 'date_adhesion', 'id_bank_country', 'iban' ]; public function identification() { return $this->hasOne(Identification::class, 'id_user'); } public function network() { return $this->belongsTo(Network::class, 'network_id'); } }