title: 419 Sorry, your session has expired. Please refresh and try again
body: <p><a href="https://www.demoniakmachine.com/notes/login" rel="nofollow noreferrer">https://www.demoniakmachine.com/notes/login</a></p>
  
  <p>Before it was :</p>
  
  <pre><code>Route::get('auth/login', ["as" =&gt; "login_form", "uses" =&gt;
          function()
          {
              return view("auth/login");
          }]
  );
  
  Route::post('auth/login', 'Auth\AuthController@postLogin');
  Route::get('auth/logout', 'Auth\AuthController@getLogout');
  
  
  Route::post('post_images', function () {
      require_once("../app_tinymce_file_acceptor.php");
  });
  
  
  Route::get('auth/register', ["as" =&gt; "register", "uses" =&gt;
      function() {
          return view('auth\register');
      }]);
  Route::post('auth/register', ['as' =&gt; 'register_submit', 'uses' =&gt; 'Auth\AuthController@postRegister']);
  
  Route::get('radio', ['middleware' =&gt; "auth", "uses" =&gt; function () {
      return view('radio.index');
  }]);
  </code></pre>
  
  <p>Then fill the form and login.</p>
  
  <p>I got an error that I ve never seen before:</p>
  
  <pre><code>https://www.demoniakmachine.com/notes/auth/login
   419
  
  Sorry, your session has expired. Please refresh and try again.
  </code></pre>
  
  <p>I try this:
  - update to 5.7.9
  - check sessions and purge the session directory.
  - generate new appkey, running artisan and composer numerous times.</p>
  
  <p>And I don't see the solution.</p>
  
  <p>I misunderstand why {{asset("auth/login")}} leads to "login" (whitout "auth") and the form post leads to "auth/login".</p>
  
  <p>As I read, Laravel perhaps wants Users to use the builtin login/register. How to use this feature from an ?</p>
  
  <p>HTML source of login page:</p>
  
  <p>Successs... demoniakmachine.com.mysql via TCP/IP</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="fr"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
      &lt;!-- CSRF Token --&gt;
      &lt;meta name="csrf-token" content="RbGZ2IZJJWZkWcTT7kUS1waVtvCWfctQp3fScjT8"&gt;
  
      &lt;title&gt;Laravel&lt;/title&gt;
  
      &lt;!-- Scripts --&gt;
      &lt;script src="https://www.demoniakmachine.com/notes/js/app.js" defer&gt;&lt;/script&gt;
  
      &lt;!-- Fonts --&gt;
      &lt;link rel="dns-prefetch" href="https://fonts.gstatic.com"&gt;
      &lt;link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css"&gt;
  
      &lt;!-- Styles --&gt;
      &lt;link href="https://www.demoniakmachine.com/notes/css/app.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="app"&gt;
          &lt;nav class="navbar navbar-expand-md navbar-light navbar-laravel"&gt;
              &lt;div class="container"&gt;
                  &lt;a class="navbar-brand" href="https://www.demoniakmachine.com/notes"&gt;
                      Laravel
                  &lt;/a&gt;
                  &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
                      &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
                  &lt;/button&gt;
  
                  &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
                      &lt;!-- Left Side Of Navbar --&gt;
                      &lt;ul class="navbar-nav mr-auto"&gt;
  
                      &lt;/ul&gt;
  
                      &lt;!-- Right Side Of Navbar --&gt;
                      &lt;ul class="navbar-nav ml-auto"&gt;
                          &lt;!-- Authentication Links --&gt;
                                                      &lt;li class="nav-item"&gt;
                                  &lt;a class="nav-link" href="https://www.demoniakmachine.com/notes/auth/login"&gt;Login&lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li class="nav-item"&gt;
                                                                      &lt;a class="nav-link" href="https://www.demoniakmachine.com/notes/auth/register"&gt;Register&lt;/a&gt;
                                                              &lt;/li&gt;
                                              &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/nav&gt;
  
          &lt;main class="py-4"&gt;
              &lt;div class="container"&gt;
      &lt;div class="row justify-content-center"&gt;
          &lt;div class="col-md-8"&gt;
              &lt;div class="card"&gt;
                  &lt;div class="card-header"&gt;Login&lt;/div&gt;
  
                  &lt;div class="card-body"&gt;
                      &lt;form method="POST" action="https://www.demoniakmachine.com/notes/auth/login"&gt;
                          &lt;input type="hidden" name="_token" value="RbGZ2IZJJWZkWcTT7kUS1waVtvCWfctQp3fScjT8"&gt;
                          &lt;div class="form-group row"&gt;
                              &lt;label for="email" class="col-sm-4 col-form-label text-md-right"&gt;E-Mail Address&lt;/label&gt;
  
                              &lt;div class="col-md-6"&gt;
                                  &lt;input id="email" type="email" class="form-control" name="email" value="" required autofocus&gt;
  
                                                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row"&gt;
                              &lt;label for="password" class="col-md-4 col-form-label text-md-right"&gt;Password&lt;/label&gt;
  
                              &lt;div class="col-md-6"&gt;
                                  &lt;input id="password" type="password" class="form-control" name="password" required&gt;
  
                                                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row"&gt;
                              &lt;div class="col-md-6 offset-md-4"&gt;
                                  &lt;div class="form-check"&gt;
                                      &lt;input class="form-check-input" type="checkbox" name="remember" id="remember" &gt;
  
                                      &lt;label class="form-check-label" for="remember"&gt;
                                          Remember Me
                                      &lt;/label&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group row mb-0"&gt;
                              &lt;div class="col-md-8 offset-md-4"&gt;
                                  &lt;button type="submit" class="btn btn-primary"&gt;
                                      Login
                                  &lt;/button&gt;
  
                                  &lt;a class="btn btn-link" href="https://www.demoniakmachine.com/notes/password/reset"&gt;
                                      Forgot Your Password?
                                  &lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
          &lt;/main&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>