Skip to content
Advertisement

Class ‘session’ not found (View: C:xampphtdocsLARAVELLARAVELresourcesviewswelcome.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:

JavaScript

Advertisement

Answer

Use Session instead of session. Note, that S is capital. If that does not work go for : Session::token()

Thanks

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement