Skip to content

Commit

Permalink
INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga committed Dec 11, 2022
1 parent 1634872 commit 93f8d1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is the contents of the published config file:

```php
return [
'default_cache_key' => env('LSS_CACHE_KEY','laravel_site_settings_data'),
'cache_key' => env('LSS_CACHE_KEY','laravel_site_settings_data'),
];
```

Expand Down
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

return [

'default_cache_key' => env('LSS_CACHE_KEY','laravel_site_settings_data'),
'cache_key' => env('LSS_CACHE_KEY','laravel_site_settings_data'),

];
2 changes: 1 addition & 1 deletion src/LaravelSiteSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LaravelSiteSettings implements ConfigContract
public function __construct()
{

$this->items = cache()->rememberForever(config('laravel_site_settings.default_cache_key'), function () {
$this->items = cache()->rememberForever(config('laravelsitesettings.cache_key'), function () {
return LaravelSiteSettingGroup::all()
->load('settings')
->keyBy('slug')
Expand Down
4 changes: 2 additions & 2 deletions src/LaravelSiteSettingsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function register()
return new LaravelSiteSettings();
});

$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'laravel_site_settings');
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'laravelsitesettings');
}

public function boot()
Expand All @@ -22,7 +22,7 @@ public function boot()
if ($this->app->runningInConsole()) {

$this->publishes([
__DIR__ . '/../config/config.php' => config_path('laravel_site_settings.php'),
__DIR__ . '/../config/config.php' => config_path('laravelsitesettings.php'),
], 'config');

$this->publishes([
Expand Down

0 comments on commit 93f8d1c

Please sign in to comment.