forked from jamesmills/laravel-timezone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimezone.php
85 lines (71 loc) · 2.47 KB
/
timezone.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
return [
/*
|--------------------------------------------------------------------------
| Flash messages
|--------------------------------------------------------------------------
|
| Here you may configure if to use the laracasts/flash package for flash
| notifications when a users timezone is set.
| options [off, laravel, laracasts, mercuryseries, spatie, mckenziearts, tall-toasts]
|
*/
'flash' => 'laravel',
/*
|--------------------------------------------------------------------------
| Overwrite Existing Timezone
|--------------------------------------------------------------------------
|
| Here you may configure if you would like to overwrite existing
| timezones if they have been already set in the database.
| options [true, false]
|
*/
'overwrite' => true,
/*
|--------------------------------------------------------------------------
| Overwrite Default Format
|--------------------------------------------------------------------------
|
| Here you may configure if you would like to overwrite the
| default format.
|
*/
'format' => 'jS F Y g:i:a',
/*
|--------------------------------------------------------------------------
| Enable translated output
|--------------------------------------------------------------------------
|
| Here you may configure if you would like to use translated output.
|
*/
'enableTranslation' => false,
/*
|--------------------------------------------------------------------------
| Lookup Array
|--------------------------------------------------------------------------
|
| Here you may configure the lookup array whom it will be used to fetch the user remote address.
| When a key is found inside the lookup array that key it will be used.
|
*/
'lookup' => [
'server' => [
'REMOTE_ADDR',
],
'headers' => [
],
],
/*
|--------------------------------------------------------------------------
| User Message
|--------------------------------------------------------------------------
|
| Here you may configure the message shown to the user when the timezone is set.
| Be sure to include the %s which will be replaced by the detected timezone.
| e.g. We have set your timezone to America/New_York
|
*/
'message' => 'We have set your timezone to %s',
];