Skip to content

Commit 77be650

Browse files
authored
Merge pull request #1 from InnoGE/readme_and_publish_config_fixes
update readme publish instructions
2 parents cffa694 + c050fc7 commit 77be650

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ composer require innoge/laravel-policy-soft-cache
2121
You can publish the config file with:
2222

2323
```bash
24-
php artisan vendor:publish --tag="laravel-policy-soft-cache-config"
24+
php artisan vendor:publish --provider="Innoge\LaravelPolicySoftCache\LaravelPolicySoftCacheServiceProvider""
2525
```
2626
2727
This is the contents of the published config file:

src/LaravelPolicySoftCacheServiceProvider.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function configurePackage(Package $package): void
1818
*/
1919
$package
2020
->name('laravel-policy-soft-cache')
21-
->hasConfigFile();
21+
->hasConfigFile('policy-soft-cache');
2222
}
2323

2424
public function boot(): void
@@ -27,6 +27,10 @@ public function boot(): void
2727
return new LaravelPolicySoftCache();
2828
});
2929

30+
$this->publishes([
31+
__DIR__.'/../config/policy-soft-cache.php' => config_path('policy-soft-cache.php'),
32+
]);
33+
3034
/*
3135
* Flush Cache on every application boot
3236
*/

0 commit comments

Comments
 (0)