ee
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -14,6 +14,7 @@ Use PDF; | ... | @@ -14,6 +14,7 @@ Use PDF; |
| 14 | use Illuminate\Support\Facades\Input; | 14 | use Illuminate\Support\Facades\Input; |
| 15 | use Intervention\Image\Facades\Image; | 15 | use Intervention\Image\Facades\Image; |
| 16 | use Illuminate\Support\Facades\Facade; | 16 | use Illuminate\Support\Facades\Facade; |
| 17 | use Illuminate\Support\Facades\Request as RequestGet; | ||
| 17 | use League\Flysystem\Filesystem; | 18 | use League\Flysystem\Filesystem; |
| 18 | use Curl\Curl; | 19 | use Curl\Curl; |
| 19 | use Google_Client; | 20 | use Google_Client; |
| ... | @@ -264,7 +265,7 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -264,7 +265,7 @@ public function isGoogleFolderCreated($cust_id) |
| 264 | } | 265 | } |
| 265 | 266 | ||
| 266 | 267 | ||
| 267 | public function GoogleTokenCode(Request $request) | 268 | public function GoogleTokenCode() |
| 268 | { | 269 | { |
| 269 | 270 | ||
| 270 | session_start(); | 271 | session_start(); |
| ... | @@ -284,7 +285,7 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -284,7 +285,7 @@ public function isGoogleFolderCreated($cust_id) |
| 284 | 285 | ||
| 285 | $client->setApprovalPrompt('force'); | 286 | $client->setApprovalPrompt('force'); |
| 286 | 287 | ||
| 287 | $code = Request::get('code'); | 288 | $code = RequestGet::get('code'); |
| 288 | $client->authenticate($code); | 289 | $client->authenticate($code); |
| 289 | $_SESSION['token'] = $client->getAccessToken(); | 290 | $_SESSION['token'] = $client->getAccessToken(); |
| 290 | 291 | ... | ... |
-
Please register or sign in to post a comment