Support the ongoing development of Laravel.io →
posted 9 years ago
Session
Last updated 2 years ago.
0

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.

0

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

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Anoukh anoukh Joined 4 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.