1. Use Session::put and get respectively, 2. It works fine locally, but the value cannot be obtained on the server, but it is saved. I also tried $request->session()->get or put, but the same problem occurred. 3. The corresponding startsession is also added to the middleware;
The code is as follows:
$before_time = Session::get($data['telephone']);
Session::put($data['telephone'],time());
1. Use Session::put and get respectively, 2. It works fine locally, but the value cannot be obtained on the server, but it is saved. I also tried $request->session()->get or put, but the same problem occurred. 3. The corresponding startsession is also added to the middleware;
The code is as follows:
$before_time = Session::get($data['telephone']);
Session::put($data['telephone'],time());