Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
updated handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jung35 committed Nov 8, 2015
1 parent 93f844f commit 27a8910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Exceptions/Handler.php
Expand Up @@ -26,7 +26,7 @@ class Handler extends ExceptionHandler {
*/
public function report(Exception $e)
{
if ($e instanceof '\Illuminate\Session\TokenMismatchException') return;
if ($e instanceof \Illuminate\Session\TokenMismatchException) return;

return parent::report($e);
}
Expand All @@ -40,15 +40,15 @@ public function report(Exception $e)
*/
public function render($request, Exception $e)
{
$this->recordLog($e, '\Illuminate\Session\TokenMismatchException', function($e) {
$this->recordLog($e, \Illuminate\Session\TokenMismatchException, function($e) {
return [
'url' => $request->url(),
'inputs' => $request->all(),
'auth' => Auth::check() ? Auth::user()->id : null
];
});

$this->recordLog($e, '\GuzzleHttp\Exception\TransferException', function($e) {
$this->recordLog($e, \GuzzleHttp\Exception\TransferException, function($e) {
return [
'request' => $e->getRequest(),
'response' => $e->hasResponse() ? $e->getResponse() : null
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Expand Up @@ -18,7 +18,7 @@ gulp.task('less', function () {
.pipe(gulp.dest('public/css'));
});

gulp.task('watch', function() {
gulp.task('watch', ['scripts', 'less'], function() {
gulp.watch('resources/assets/js/**/*.js', ['scripts']);
gulp.watch('resources/assets/less/**/*.less', ['less']);
});
Expand Down

0 comments on commit 27a8910

Please sign in to comment.