Explorar el Código

fix: user model and customer model

Muhammad Iqbal Afandi hace 3 años
padre
commit
1ff55def88
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      app/Models/Customer.php
  2. 1
    1
      app/Models/User.php

+ 1
- 1
app/Models/Customer.php Ver fichero

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 Ver fichero

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