Support the ongoing development of Laravel.io →
Authentication Security Requests

I am new in laravel 5 , when i try to register or login [ auth/login or auth/register ] i get error like this

/home/digitalsoft/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php line 46:

i am using shared hosting

i removed 'Illuminate\Foundation\Http\Middleware\VerifyCsrfToken' from /app/Http/Resquests/Kernel.php

After doing this every time I submit a form I get a message which says redirecting to: /auth/login or /auth/register depending on where I came from with no success.

Last updated 2 years ago.
0

Just a hunch: do you have write permissions set for storage folder?

0

@xum - yes 777, but not working :(

Last updated 9 years ago.
0

I get those errors if I am coding something and hit refresh will debuggin a login. I have to return to the login form every time or a similar error will show.

Try going back to the original form and try again.

0

Something like a login form, a create XYZ form. Things like that.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.