Sfoglia il codice sorgente

fix: user model and customer model

parent
commit
1ff55def88
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1
    1
      app/Models/Customer.php
  2. 1
    1
      app/Models/User.php

+ 1
- 1
app/Models/Customer.php Vedi File

@@ -21,7 +21,7 @@ class Customer extends Model
21 21
     protected function gender(): Attribute
22 22
     {
23 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 Vedi File

@@ -52,7 +52,7 @@ class User extends Authenticatable implements MustVerifyEmail
52 52
     protected function gender(): Attribute
53 53
     {
54 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