Support the ongoing development of Laravel.io →
Laravel Breeze Session
0
moderator

Maybe you can see how Jetstream, see: https://jetstream.laravel.com/features/browser-sessions.html

It is important to use the database driver for your sessions, but with that I think you can the function like showed here: https://github.com/laravel/jetstream/blob/4.x/src/Http/Livewir...

0

But I am using livewire and breeze not Jetstream

0
moderator

The links are more as an example :)

For the database driver you need to create a table, see in the Laravel docs: https://laravel.com/docs/10.x/session#database

After that you can create a Session model for it or use the code as from the Jetstream source to load the sessions.

0

I used the below package other than increasing the overhead on the sever by sending request to get the session data from the database the show it in the browser what do you think https://github.com/cjmellor/browser-sessions

0
moderator

I used the below package other than increasing the overhead on the sever by sending request to get the session data from the database the show it in the browser what do you think https://github.com/cjmellor/browser-sessions

To be honest I'm sure about what you mean. The package you link also need the database driver for sessions. And the information about sessions is always stored on the server not on the client.

But I think it can be a useful package to help with what you want, so nice found!

0

Actually i discovered that even if I used $session->all() as the docs says also I will get the sessions from the database because I am using the database driver not file driver

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.