G
G
Gramcoder2020-02-09 21:09:56
Laravel
Gramcoder, 2020-02-09 21:09:56

How can I count all available sessions in laravel?

Didn't find any information on this issue. Are there any built-in mechanisms in laravel that would allow counting all sessions? I see the option to simply read the folder with session files, but maybe there is some other built-in way?

PS Session driver: file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
photozoom, 2020-02-18
@photozoom

$data = $request->session()->all();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question