Skip to content

Commit

Permalink
Fix compatibility with 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau committed May 31, 2017
1 parent ded833f commit 867ac3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ php artisan vendor:publish

<img src="https://cloud.githubusercontent.com/assets/8103985/17901937/ebdbdb3e-696d-11e6-96b4-b0794d74ed9a.png" alt="verification_token" style="height: 250px; width: auto;">

Open `config/slackEvents.php` and paste your Verification Token under the `'token'` key:
Open `.env` and paste your Verification Token under the `'SLACK_EVENT_TOKEN'` key:
```php
'token' => 'paste-your-token-here'
SLACK_EVENT_TOKEN=your-token
```

**6)** Now open the "Event Subscriptions" page. Here you must enable events, add events you wish to listen for and set **Request URL**. Request URL is the `'route'` key in your `config/slackEvents.php` file:
Expand All @@ -62,7 +62,7 @@ return [
| Your validation token from "App Credentials"
|-------------------------------------------------------------
*/
'token' => 'your-validation-token-here',
'token' => env('SLACK_EVENT_TOKEN', 'your-validation-token-here'),

/*
|-------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Events/Base/SlackEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SlackEvent
*/
public function setFromRequest(Request $request)
{
$this->setFromArray($request->toArray());
$this->setFromArray($request->all());
}

/**
Expand Down

0 comments on commit 867ac3b

Please sign in to comment.