-1

i am developing a laravel website using termux. I have configure database using termux mariadb. database migration done. all set. but problem accruing during register page. register page opening but can't register it shows

the page has expired due to inactivity please refresh the page

after submitting form. register and login page working well earlier. but from few days it's not working. may be problem occurring from config files or .env. I have tried many possibility. but never success.

James Z
  • 12,209
  • 10
  • 24
  • 44
Rauz Saul
  • 13
  • 4

2 Answers2

1

It's the CSRF error. If you have a form in your page, you have to add scrf field. See this link

Rouhollah Mazarei
  • 3,969
  • 1
  • 14
  • 20
1

It's the CSRF error, you need to add csrf field to form

{{csrf_field}}

or

<input name="_token" value="{{csrf_token()}}" type='hidden'>
Mahdi Younesi
  • 6,889
  • 2
  • 20
  • 51