This repository was archived by the owner on Aug 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ composer require huddledigital/zendesk-laravel
16
16
17
17
You must also install the service provider.
18
18
19
+ > Laravel 5.5+ users: this step may be skipped, as the package supports auto discovery.
20
+
19
21
``` php
20
22
// config/app.php
21
23
'providers' => [
@@ -48,16 +50,16 @@ php artisan vendor:publish --provider="Huddle\Zendesk\Providers\ZendeskServicePr
48
50
Set your configuration using ** environment variables** , either in your ` .env ` file or on your server's control panel:
49
51
50
52
- ` ZENDESK_SUBDOMAIN `
51
-
53
+
52
54
The subdomain part of your Zendesk organisation URL.
53
55
54
- e.g. http://huddledigital.zendesk.com use ** huddledigital**
56
+ e.g. http://huddledigital.zendesk.com use ** huddledigital**
55
57
56
- - ` ZENDESK_USERNAME `
58
+ - ` ZENDESK_USERNAME `
57
59
58
60
The username for the authenticating account.
59
61
60
- - ` ZENDESK_TOKEN `
62
+ - ` ZENDESK_TOKEN `
61
63
62
64
The API access token. You can create one at: ` https://SUBDOMAIN.zendesk.com/agent/admin/api/settings `
63
65
@@ -99,11 +101,11 @@ If you'd prefer not to use the facade, you can skip adding the alias to `config/
99
101
use Huddle\Zendesk\Services\ZendeskService;
100
102
101
103
class MyClass {
102
-
104
+
103
105
public function __construct(ZendeskService $zendesk_service) {
104
106
$this->zendesk_service = $zendesk_service;
105
107
}
106
-
108
+
107
109
public function addTicket() {
108
110
$this->zendesk_service->tickets()->create([
109
111
'subject' => 'Subject',
@@ -113,8 +115,8 @@ class MyClass {
113
115
'priority' => 'normal'
114
116
]);
115
117
}
116
-
118
+
117
119
}
118
120
```
119
-
121
+
120
122
This package is available under the [ MIT license] ( http://opensource.org/licenses/MIT ) .
You can’t perform that action at this time.
0 commit comments