title: Class 'session' not found (View: C:\xampp\htdocs\LARAVEL\LARAVEL\resources\views\welcome.blade.php)
body: <p>Here, I am trying to create a signup page using laravel. However, I'm having problems with the part of the code that has &quot;session&quot;. When I take that part out, the code works but when I leave it in, it doesn't. The tutorial that I got the code from says that the sessions part of the code is very important for security. Here is the code:</p>
  <pre><code>section ('content')
  &lt;div class = &quot;row&quot;&gt;
      &lt;div class = &quot;col-md-6&quot;&gt;
          &lt;h3&gt; Sign Up &lt;/h3&gt;
          &lt;form action =&quot;{{route ('signup')}}&quot; method = &quot;post&quot;&gt;
            &lt;div class = &quot;form-group&quot;&gt;
                  &lt;label for= &quot;email&quot;&gt; your E-mail &lt;/label&gt;
                  &lt;input class = &quot;form-control&quot; type=&quot;text&quot; name = &quot;email&quot; id= &quot;email&quot;&gt;
            &lt;/div&gt;
            &lt;div class = &quot;form-group&quot;&gt;
                  &lt;label for= &quot;first_name&quot;&gt; your first name &lt;/label&gt;
                  &lt;input class = &quot;form-control&quot; type=&quot;text&quot; name = &quot;first_name&quot; id= &quot;first_name&quot;&gt;
            &lt;/div&gt;
            
            &lt;div class = &quot;form-group&quot;&gt;
                  &lt;label for= &quot;password&quot;&gt; your password &lt;/label&gt;
                  &lt;input class = &quot;form-control&quot; type=&quot;password&quot; name = &quot;password&quot; id= &quot;password&quot;&gt;    
            &lt;/div&gt;
            &lt;button type = &quot;submit&quot; class = &quot;btn btn-primary&quot;&gt;submit&lt;/button&gt;
          &lt;input type = &quot;hidden&quot; name = &quot;_token&quot; value=&quot;{{session::token() }}&quot;&gt;
          &lt;/form&gt;
                   
  </code></pre>