Laravel

The page has expired due to inactivity

By June 15, 2020 No Comments

I faced this error when Twilio was trying to send a POST request to our server and the server said – The page has expired due to inactivity.

The following answer from this URL solved the issue.

add 

1
@csrf
 in the form and also go to VerifyCsrfToken.php

app->Http->Middleware->VerifyCsrfToken.php


1
2
3
4
protected $except = [
        'paste your route here'
'I pasted full url here with https'
    ];