Support the ongoing development of Laravel.io →
Session Database

Hello!

I set my session driver as database and in session config file set connection as mysql, because its what I'm using. But my problem is that session() have different information than in session database, do I need to make eloquent model or do raw queries to get information from session table what corresponds to current user?

Last updated 2 years ago.
0

Seriously none?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

chaot1x chaot1x Joined 22 Dec 2014

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.

© 2025 Laravel.io - All rights reserved.