|
13 | 13 | /* |
14 | 14 | * User properties. |
15 | 15 | * |
16 | | - * You can customize the user guard, table, foreign key, and ... . |
| 16 | + * You can customize the user guard, table, foreign key, and ... |
17 | 17 | */ |
18 | 18 | 'user' => [ |
19 | 19 | /* |
|
39 | 39 | /* |
40 | 40 | * If you are using uuid or ulid you can change it for the type of foreign_key. |
41 | 41 | * |
42 | | - * When you are using ulid or uuid, you need to add related traits into the models. |
| 42 | + * When using ulid or uuid, you need to add related traits into the models. |
43 | 43 | */ |
44 | 44 | 'foreign_key_type' => 'id', // uuid, ulid, id |
45 | 45 |
|
46 | 46 | /* |
47 | | - * If you want to display custom username, you can create your own attribute in User and change this value. |
| 47 | + * If you want to display a custom username, you can create your attribute in User and change this value. |
48 | 48 | */ |
49 | 49 | 'display_attribute' => 'name', |
50 | 50 | ], |
|
76 | 76 |
|
77 | 77 | /* |
78 | 78 | * If you want to delete visit rows after some days, you can change this to 360 for example, |
79 | | - * but you don't like to delete rows you can change it to 0. |
| 79 | + * but if you don't like to delete rows you can change it to 0. |
80 | 80 | * |
81 | 81 | * For this feature you need Task-Scheduling => https://laravel.com/docs/10.x/scheduling |
82 | 82 | */ |
|
100 | 100 | 'on_read' => true, |
101 | 101 | 'on_restore' => false, |
102 | 102 | 'on_replicate' => false, |
| 103 | + |
| 104 | + /** |
| 105 | + * Determines if the application should use reverse proxy headers to fetch the real client IP |
| 106 | + * If set to true, it will try to get the IP from the specified header (X-Real-IP or X-Forwarded-For) |
| 107 | + * This is useful when using reverse proxies like Nginx or Cloudflare. |
| 108 | + */ |
| 109 | + 'use_reverse_proxy_ip' => false, |
| 110 | + 'real_ip_header' => 'X-Forwarded-For' |
103 | 111 | ], |
104 | 112 |
|
105 | 113 | /* |
|
0 commit comments