This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

updated handler

  • Loading branch information...
jung35 committed Nov 8, 2015
1 parent 93f844f commit 27a89101a526a09a8f1d20de09cea83a7ba844c3
Showing with 4 additions and 4 deletions.
  1. +3 −3 app/Exceptions/Handler.php
  2. +1 −1 gulpfile.js
@@ -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);
}
@@ -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
View
@@ -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']);
});

0 comments on commit 27a8910

Please sign in to comment.