Created
November 3, 2014 14:30
-
-
Save degt/9082263101636a3c3f06 to your computer and use it in GitHub Desktop.
SentryExceptionHandler use (http://forumsarchive.laravel.io/viewtopic.php?id=13630)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try | |
{ | |
$user = Sentry::authenticate($credentials, false); | |
if ($user) | |
{ | |
return Redirect::route('admin.pages.index'); | |
} | |
} | |
catch (\Exception $e) | |
{ | |
$errorHandler = new SentryExceptionHandler( $e ); | |
$message = $errorHandler->getMessage(); | |
} | |
return Redirect::route('admin.login')->withErrors(array('login' => $message)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment