Class 'session' not found (View: C:xampphtdocsLARAVELLARAVEL esourcesviewswelcome.blade.php)

Here, I am trying to create a signup page using laravel. However, I'm having problems with the part of the code that has "session". 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:
section ('content')
<div class = "row">
<div class = "col-md-6">
<h3> Sign Up </h3>
<form action ="{{route ('signup')}}" method = "post">
<div class = "form-group">
<label for= "email"> your E-mail </label>
<input class = "form-control" type="text" name = "email" id= "email">
</div>
<div class = "form-group">
<label for= "first_name"> your first name </label>
<input class = "form-control" type="text" name = "first_name" id= "first_name">
</div>
<div class = "form-group">
<label for= "password"> your password </label>
<input class = "form-control" type="password" name = "password" id= "password">
</div>
<button type = "submit" class = "btn btn-primary">submit</button>
<input type = "hidden" name = "_token" value="{{session::token() }}">
</form>
Answer
Solution:
UseSession
instead ofsession
. Note, that S is capital. If that does not work go for :\Session::token()
Thanks
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: an exception occurred in the driver: could not find driver
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.