Skip to content

Commit

Permalink
Merge pull request #1 from InnoGE/readme_and_publish_config_fixes
Browse files Browse the repository at this point in the history
update readme publish instructions
  • Loading branch information
geisi authored Jan 2, 2023
2 parents cffa694 + c050fc7 commit 77be650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ composer require innoge/laravel-policy-soft-cache
You can publish the config file with:

```bash
php artisan vendor:publish --tag="laravel-policy-soft-cache-config"
php artisan vendor:publish --provider="Innoge\LaravelPolicySoftCache\LaravelPolicySoftCacheServiceProvider""
```
This is the contents of the published config file:
Expand Down
6 changes: 5 additions & 1 deletion src/LaravelPolicySoftCacheServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function configurePackage(Package $package): void
*/
$package
->name('laravel-policy-soft-cache')
->hasConfigFile();
->hasConfigFile('policy-soft-cache');
}

public function boot(): void
Expand All @@ -27,6 +27,10 @@ public function boot(): void
return new LaravelPolicySoftCache();
});

$this->publishes([
__DIR__.'/../config/policy-soft-cache.php' => config_path('policy-soft-cache.php'),
]);

/*
* Flush Cache on every application boot
*/
Expand Down

0 comments on commit 77be650

Please sign in to comment.