Skip to content

Commit 451fc12

Browse files
committed
Merge pull request artdarek#44 from joshuaziering/patch-1
Update README.md
2 parents 5a0989d + dd64916 commit 451fc12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function loginWithFacebook() {
205205
$url = $fb->getAuthorizationUri();
206206

207207
// return to facebook login url
208-
return Response::make()->header( 'Location', (string)$url );
208+
return Redirect::to( (string)$url );
209209
}
210210

211211
}
@@ -258,7 +258,7 @@ public function loginWithGoogle() {
258258
$url = $googleService->getAuthorizationUri();
259259

260260
// return to facebook login url
261-
return Response::make()->header( 'Location', (string)$url );
261+
return Redirect::to( (string)$url );
262262
}
263263
}
264264
```
@@ -309,7 +309,7 @@ In your Controller use the following code:
309309
$url = $linkedinService->getAuthorizationUri(array('state'=>'DCEEFWF45453sdffef424'));
310310

311311
// return to linkedin login url
312-
return Response::make()->header( 'Location', (string)$url );
312+
return Redirect::to( (string)$url );
313313
}
314314

315315

0 commit comments

Comments
 (0)