Are you sure that $conn is an object? I would check that first ;) As far as I can tell, it is not an error message on the session facade not working.
Yes it is an object. I tried hard coding an input as follows; Session::put('key','value'); It still generated the same error. Also an echo would print out the $conn->resourceId
Hmm, would you mind trying the following two things:
/Session::put('key',$conn->resourceId); // note the slash in front of 'Sessions'
and with the helper method
session(['key' => $conn->resourceId]);
If either one works, you most likely do not have the correct namespaces. In that case please read this
http://laravel.io/forum/11-14-2014-no-facade-aliases-in-laravel-5
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community