Skip to content

Instantly share code, notes, and snippets.

@deleugpn
Last active October 9, 2017 20:45
Show Gist options
  • Select an option

  • Save deleugpn/4ba7a3ec5fa9eb38a057304f7247aee3 to your computer and use it in GitHub Desktop.

Select an option

Save deleugpn/4ba7a3ec5fa9eb38a057304f7247aee3 to your computer and use it in GitHub Desktop.
<?php
protected function authenticated(Request $request, $user)
{
if (is_null($user->google_token)) {
return redirect()->intended($this->redirectTo);
}
Auth::logout();
$request->session()->put('user-id', $user->id);
return redirect('/token');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment