Token Mismatch Exception,如果表单在浏览器中长时间打开

I know what is TokenMismatchException exeptions but how I resolve the issue if a form is open for a long time and then suddenly you fill the form and submit it then it also throws the same TokenMismatchException, is there any solution for not show such an error.The session expires after some time if the form page is left idol for a long time and then submit it. that is all.

You have to increase session time in your application's config/session.php file.

/*
    |--------------------------------------------------------------------------
    | Session Lifetime
    |--------------------------------------------------------------------------
    |
    | Here you may specify the number of minutes that you wish the session
    | to be allowed to remain idle before it expires. If you want them
    | to immediately expire on the browser closing, set that option.
    |
    */

    'lifetime' => 120,

    'expire_on_close' => false,

You need to add TokenMismatchException in app\Exceptions\Handler.php

use Illuminate\Session\TokenMismatchException;

class Handler extends ExceptionHandler {

public function render($request, Exception $e) {


         if ($e instanceof TokenMismatchException){
            //redirect to a form when there is token mismatch
            return redirect($request->fullUrl())->with('alert-warning',"Opps! Seems you couldn't submit form for a longtime. Please try again");
        }

        //Remaining code 
        .
        .
        .
        .

    }

}