I do authentication on laravel . There is a clean project, in the console I entered php artisan make:auth , created a table, connected it to .env , made php artisan migrate .

The site opens start page I go to the registration page, fill in all the fields. When you try to register, the page is displayed: Mistake Googling, writing to add {{ csrf_field() }} to the form, but this was already the case. What could be the problem?

    1 answer 1

    Look in the .env file for what value in SESSION_DRIVER. If not file then:

     SESSION_DRIVER=file 
    • I have 'driver' => env ('SESSION_DRIVER', 'file') installed , - yurcha
    • they also write that it is necessary to set 'domain' => env ('SESSION_DOMAIN', null) and 'secure' => env ('SESSION_SECURE_COOKIE', false) But I already have them. - yurcha