@@ 8-21 (lines=14) @@ | ||
5 | use Log; |
|
6 | use App\Models\User; |
|
7 | ||
8 | class Update extends Pipedrive |
|
9 | { |
|
10 | public function organization(Organization $organization) |
|
11 | { |
|
12 | // Also simple to update any Pipedrive resource value |
|
13 | $organization = $this->_connection->organizations->update( |
|
14 | 1, |
|
15 | [ |
|
16 | 'name' => $organization->id |
|
17 | ] |
|
18 | ); |
|
19 | var_dump($organization->getData()); |
|
20 | } |
|
21 | } |
|
22 |
@@ 8-21 (lines=14) @@ | ||
5 | use Log; |
|
6 | use App\Models\User; |
|
7 | ||
8 | class Update extends Pipedrive |
|
9 | { |
|
10 | public function organization(Organization $organization) |
|
11 | { |
|
12 | // Also simple to update any Pipedrive resource value |
|
13 | $organization = $this->_connection->organizations->update( |
|
14 | 1, |
|
15 | [ |
|
16 | 'name' => $organization->id |
|
17 | ] |
|
18 | ); |
|
19 | var_dump($organization->getData()); |
|
20 | } |
|
21 | } |
|
22 |
@@ 8-21 (lines=14) @@ | ||
5 | use Log; |
|
6 | use App\Models\User; |
|
7 | ||
8 | class Update extends Pipedrive |
|
9 | { |
|
10 | public function organization(Organization $organization) |
|
11 | { |
|
12 | // Also simple to update any Pipedrive resource value |
|
13 | $organization = $this->_connection->organizations->update( |
|
14 | 1, |
|
15 | [ |
|
16 | 'name' => $organization->id |
|
17 | ] |
|
18 | ); |
|
19 | var_dump($organization->getData()); |
|
20 | } |
|
21 | } |
|
22 |