I am confused why it is prerequisite of creating a database table for session based on the documentation, when session can work without it (db table).
Someone could explain me,
- I can directly
session(['key' => 'value']);
without the table, why we need to create a database table for session (based on documentation)? There is a thing called
Redis
. what is the purpose? and how to I use (I already installed)?What are the purpose of the fields like
user_id
,ip_address
,user_agent
,payload
,last_activity
? and how can these be useful?