Skip to content

Commit 9575b77

Browse files
authored
Update README.md
1 parent 77f0c57 commit 9575b77

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ composer require avnsh1111/laravel-api-rate-limiter
2222

2323
## Configuration
2424

25-
After installing the package, publish the configuration file to configure the rate limiting settings:
25+
Before publishing the configuration file, you need to add the `LaravelApiRateLimiterServiceProvider` to the `providers` array in your `config/app.php`:
26+
27+
```php
28+
'providers' => [
29+
// ...
30+
Avnsh1111\LaravelApiRateLimiter\LaravelApiRateLimiterServiceProvider::class,
31+
],
32+
```
33+
34+
After adding the ServiceProvider, publish the configuration file to configure the rate limiting settings:
2635

2736
```bash
28-
php artisan vendor:publish --provider="Avnsh1111\LaravelApiRateLimiter\ServiceProvider"
37+
php artisan vendor:publish --provider="Avnsh1111\LaravelApiRateLimiter\LaravelApiRateLimiterServiceProvider"
2938
```
3039

3140
This will create a `laravel-api-rate-limiter.php` configuration file in your `config` folder.

0 commit comments

Comments
 (0)