lang-updaetes

This commit is contained in:
Manish Verma
2017-05-15 16:49:13 +05:30
parent cbf2cb0a2c
commit bddfd25393
9 changed files with 20 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ use Illuminate\Auth\Access\AuthorizationException;
// use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Validation\ValidationException;
use Illuminate\Session\TokenMismatchException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class Handler extends ExceptionHandler
@@ -171,6 +172,8 @@ class Handler extends ExceptionHandler
// } else {
// return parent::render($request, $e);
// }
case $e instanceof TokenMismatchException:
return redirect()->back()->with('fails', \Lang::get('lang.session-expired'));
default:
return $this->render500($request, $e);
}