You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+25-26
Original file line number
Diff line number
Diff line change
@@ -43,31 +43,6 @@ Run the database migrations. This will add a `timezone` column to your `users` t
43
43
php artisan migrate
44
44
```
45
45
46
-
## Flash Messages
47
-
48
-
By default when the timezone has been set there is a flash message set in the session. There is an optional integration to use [laracasts/flash](https://github.com/laracasts/flash) package if you wish. Just publish the config options (info below) and override the default settings.
49
-
50
-
51
-
## Overwrite existing timezones in the database
52
-
53
-
By default, the timezone will be overwritten at each login with the current user timezone. This behavior can be restricted to only update the timezone if it is blank by setting the `'overwrite' => false,` config option (info below).
54
-
55
-
## Custom Configuration
56
-
57
-
Publishing the config file is optional.
58
-
59
-
There isn't much to configure right now. You only need to do this if you want to use Laracast Flash Messages or restrict overwriting the database.
### Showing date/time to the user in their timezone
@@ -106,7 +81,6 @@ And with custom formatting
106
81
// 2018-07-04 3:32 New York, America
107
82
```
108
83
109
-
110
84
### Saving the users input to the database in UTC
111
85
112
86
This will take a date/time, set it to the users timezone then return it as UTC in a Carbon instance.
@@ -118,6 +92,31 @@ $post = Post::create([
118
92
]);
119
93
```
120
94
95
+
## Flash Messages
96
+
97
+
By default when the timezone has been set there is a flash message set in the session. There is an optional integration to use [laracasts/flash](https://github.com/laracasts/flash) package if you wish. Just publish the config options (info below) and override the default settings.
98
+
99
+
100
+
## Overwrite existing timezones in the database
101
+
102
+
By default, the timezone will be overwritten at each login with the current user timezone. This behavior can be restricted to only update the timezone if it is blank by setting the `'overwrite' => false,` config option (info below).
103
+
104
+
## Custom Configuration
105
+
106
+
Publishing the config file is optional.
107
+
108
+
There isn't much to configure right now. You only need to do this if you want to use Laracast Flash Messages or restrict overwriting the database.
0 commit comments