Skip to content

Commit e7f7fc7

Browse files
committed
Small README update
1 parent 4fdad73 commit e7f7fc7

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -102,30 +102,29 @@ $post = Post::create([
102102

103103
Publishing the config file is optional.
104104

105-
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.
106-
107105
```php
108106
php artisan vendor:publish --provider="JamesMills\LaravelTimezone\LaravelTimezoneServiceProvider" --tag=config
109107
```
110108

111-
If you wish to customise the underlying `torann/geoip` package you can publish the config file by using the command below.
112-
113-
```php
114-
php artisan vendor:publish --provider="Torann\GeoIP\GeoIPServiceProvider" --tag=config
115-
```
116-
117109
### Flash Messages
118110

119-
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 and override the default settings.
120-
111+
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 and override the default `'flash' => 'laracasts'` settings.
121112

122113
### Overwrite existing timezones in the database
123114

124115
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.
125116

126117
### Default Format
127118

128-
By default, the date format will be `jS F Y g:i:a`. To override this configuration, you just need to change the `format` property inside the configuration file ´config/timezone.php` for the desired format.
119+
By default, the date format will be `jS F Y g:i:a`. To override this configuration, you just need to change the `format` property inside the configuration file `config/timezone.php` for the desired format.
120+
121+
### Underlying GeoIp Package
122+
123+
If you wish to customise the underlying `torann/geoip` package you can publish the config file by using the command below.
124+
125+
```php
126+
php artisan vendor:publish --provider="Torann\GeoIP\GeoIPServiceProvider" --tag=config
127+
```
129128

130129
## Changelog
131130

0 commit comments

Comments
 (0)