Skip to content

Commit

Permalink
Allow users to set redirectAfterLogout
Browse files Browse the repository at this point in the history
Apparently you shouldn't code early morning without coffee, @taylorotwell was correct in it not returning previously.

Didn't use logoutPath because it's not really a path in the same way loginPath is.
  • Loading branch information
ssx committed Mar 24, 2015
1 parent d16eee2 commit aa12044
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -107,7 +107,7 @@ public function getLogout()
{
$this->auth->logout();

return redirect('/');
return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/');
}

/**
Expand Down

0 comments on commit aa12044

Please sign in to comment.