Skip to content

Commit 8d812f8

Browse files
committed
feat: README.md
1 parent eebefce commit 8d812f8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,33 @@ To get started, install the package using Composer:
3434
composer require erag/laravel-pwa
3535
```
3636

37+
## Register the Service Provider
38+
39+
### For Laravel (Optional) v11.x, v12.x
40+
41+
Ensure the service provider is registered in your `/bootstrap/providers.php` file:
42+
43+
```php
44+
use EragLaravelPwa\EragLaravelPwaServiceProvider;
45+
46+
47+
return [
48+
// ...
49+
EragLaravelPwaServiceProvider::class,
50+
];
51+
```
52+
53+
### For Laravel v8.x, v9.x, v10.x
54+
55+
Ensure the service provider is registered in your `config/app.php` file:
56+
57+
```php
58+
'providers' => [
59+
// ...
60+
EragLaravelPwa\EragLaravelPwaServiceProvider::class,
61+
],
62+
```
63+
3764
Once installed, publish the PWA configuration files using:
3865

3966
```bash

0 commit comments

Comments
 (0)