Ok, I got it fixed. I forgot the namespace...
Hey nicholascc, what do you mean you forgot the namespace? I'm getting the same error when trying to use Session::flash from a controller (also L5). Any help?
thetimmyc said:
Hey nicholascc, what do you mean you forgot the namespace? I'm getting the same error when trying to use Session::flash from a controller (also L5). Any help?
add use Session; line below the opening php tag in your controller to use Session class in laravel 5.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community