Skip to content

Commit f2cba84

Browse files
authored
Merge pull request #310 from GrandadEvans/main
Change out of date stubs in README
2 parents 675f892 + 5a07088 commit f2cba84

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ return [
9797

9898
/*
9999
* Each settings class used in your application must be registered, you can
100-
* add them (manually) here.
100+
* put them (manually) here.
101101
*/
102102
'settings' => [
103103

@@ -109,7 +109,7 @@ return [
109109
'setting_class_path' => app_path('Settings'),
110110

111111
/*
112-
* In these directories settings migrations will be stored and ran when migrating. A settings
112+
* In these directories settings migrations will be stored and ran when migrating. A settings
113113
* migration created via the make:settings-migration command will be stored in the first path or
114114
* a custom defined path when running the command.
115115
*/
@@ -118,7 +118,7 @@ return [
118118
],
119119

120120
/*
121-
* When no repository is set for a settings class, the following repository
121+
* When no repository was set for a settings class the following repository
122122
* will be used for loading and saving settings.
123123
*/
124124
'default_repository' => 'database',
@@ -157,11 +157,12 @@ return [
157157
'enabled' => env('SETTINGS_CACHE_ENABLED', false),
158158
'store' => null,
159159
'prefix' => null,
160+
'ttl' => null,
160161
],
161162

162163
/*
163164
* These global casts will be automatically used whenever a property within
164-
* your settings class isn't the default PHP type.
165+
* your settings class isn't a default PHP type.
165166
*/
166167
'global_casts' => [
167168
DateTimeInterface::class => Spatie\LaravelSettings\SettingsCasts\DateTimeInterfaceCast::class,
@@ -240,7 +241,7 @@ This command will create a new file in `database/settings` where you can add the
240241
```php
241242
use Spatie\LaravelSettings\Migrations\SettingsMigration;
242243

243-
class CreateGeneralSettings extends SettingsMigration
244+
return new class extends SettingsMigration
244245
{
245246
public function up(): void
246247
{

0 commit comments

Comments
 (0)