diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 55b013ddb8..b037b6029e 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,19 +2,19 @@ namespace App\Exceptions; +use App\Http\Requests\Request; use Exception; -use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\Access\AuthorizationException; +use Illuminate\Auth\AuthenticationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Http\Exceptions\HttpResponseException; -use Illuminate\Support\Facades\Response; use Illuminate\Session\TokenMismatchException; +use Illuminate\Support\Facades\Response; use Redirect; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Utils; -use Request; /** * Class Handler. @@ -101,7 +101,7 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $e) { - $value = Request::header('X-Ninja-Token'); + $value = \Request::header('X-Ninja-Token'); if ($e instanceof ModelNotFoundException) {