Parcourir la source

fix: user model and customer model

Muhammad Iqbal Afandi il y a 3 ans
Parent
révision
1ff55def88
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      app/Models/Customer.php
  2. 1
    1
      app/Models/User.php

+ 1
- 1
app/Models/Customer.php Voir le fichier

21
     protected function gender(): Attribute
21
     protected function gender(): Attribute
22
     {
22
     {
23
         return Attribute::make(
23
         return Attribute::make(
24
-            get:fn($value) => $value === 1 ? __('words.female') : __('words.male'),
24
+            get:fn($value) => $value == 1 ? __('words.female') : __('words.male'),
25
         );
25
         );
26
     }
26
     }
27
 
27
 

+ 1
- 1
app/Models/User.php Voir le fichier

52
     protected function gender(): Attribute
52
     protected function gender(): Attribute
53
     {
53
     {
54
         return Attribute::make(
54
         return Attribute::make(
55
-            get:fn($value) => $value === 1 ? __('words.female') : __('words.male'),
55
+            get:fn($value) => $value == 1 ? __('words.female') : __('words.male'),
56
         );
56
         );
57
     }
57
     }
58
 
58