Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function handle($request, Closure $next) |
||
18 | { |
||
19 | if (!$request->user()) { |
||
20 | return $next($request); |
||
21 | } |
||
22 | |||
23 | $session = Session::where('id', $request->session()->getId())->first(); |
||
24 | |||
25 | $data = [ |
||
26 | 'url' => $request->path(), |
||
27 | 'method' => $request->method() |
||
28 | ]; |
||
29 | |||
30 | SessionRepository::update($data, $session); |
||
31 | |||
32 | return $next($request); |
||
33 | } |
||
35 |