Skip to content

Commit 6e5a28d

Browse files
author
Davi Nunes
committed
Merge branch 'master' of https://github.com/davibennun/laravel-push-notification into laravel5
2 parents 3820fc5 + 526b8bf commit 6e5a28d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,43 @@ Installation
77
----
88

99
Update your `composer.json` file to include this package as a dependency
10+
11+
Laravel 5
12+
13+
```json
14+
"davibennun/laravel-push-notification": "dev-laravel5"
15+
```
16+
Laravel 4.*
1017
```json
1118
"davibennun/laravel-push-notification": "dev-master"
1219
```
1320

14-
Register the PushNotification service provider by adding it to the providers array in the `app/config/app.php` file.
21+
Register the PushNotification service provider by adding it to the providers array.
1522
```php
1623
'providers' => array(
17-
Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider
24+
...
25+
'Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider'
1826
)
1927
```
2028

2129
Alias the PushNotification facade by adding it to the aliases array in the `app/config/app.php` file.
2230
```php
2331
'aliases' => array(
24-
'PushNotification' => 'Davibennun\LaravelPushNotification\Facades\PushNotification'
32+
...
33+
'PushNotification' => 'Davibennun\LaravelPushNotification\Facades\PushNotification'
2534
)
2635
```
2736

2837
# Configuration
2938

3039
Copy the config file into your project by running
40+
41+
Laravel 5
42+
```php
43+
php artisan vendor:publish --provider="Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider" --tag="config"
44+
```
45+
46+
Laravel 4.*
3147
```
3248
php artisan vendor:publish --provider="Vendor/Davibennun/LaravelPushNotification/LaravelPushNotificationServiceProvider" --tag="config"
3349
```

0 commit comments

Comments
 (0)