You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ PS: v8 now uses the new Twitter API V2. Please read the upgrade guide for your a
37
37
38
38
This package is part of the [Laravel Notification Channels](http://laravel-notification-channels.com/) project. It provides additional Laravel Notification channels to the ones given by [Laravel](https://laravel.com/docs/master/notifications) itself.
39
39
40
-
The Twitter channel makes it possible to send out Laravel notifications as a `Twitter status update `(post on the timeline) or as a `direct message`.
40
+
The Twitter channel makes it possible to send out Laravel notifications as a `Twitter tweet`(post on the timeline) or as a `direct message`.
You will need to [create](https://developer.twitter.com/apps/) a Twitter app to use this channel. Within this app, you will find the `keys and access tokens`. Place them inside your `.env` file. To load them, add this to your `config/services.php` file:
56
+
You will need to [create](https://developer.twitter.com/apps/) a Twitter app to use this channel. Within this app, you will find the `keys and access tokens`.
57
+
58
+
Your Twitter app `must be within a project`. Also make sure to activate the `user authentication settings`:
To load them, add this to your `config/services.php` file:
57
80
58
81
```php
59
82
...
@@ -66,8 +89,6 @@ You will need to [create](https://developer.twitter.com/apps/) a Twitter app to
66
89
...
67
90
```
68
91
69
-
This will load the Twitter app data from the `.env` file. Make sure to use the same keys you have used like `TWITTER_CONSUMER_KEY`.
70
-
71
92
## Usage
72
93
73
94
To use this package, you need to create a notification class, like `NewsWasPublished` from the example below, in your Laravel application. Make sure to check out [Laravel's documentation](https://laravel.com/docs/master/notifications) for this process.
0 commit comments