| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | public function store(LoginRequest $request) | ||
| 30 |     { | ||
| 31 | $request->authenticate(); | ||
| 32 | |||
| 33 | $request->session()->regenerate(); | ||
|  | |||
| 34 | |||
| 35 |         $admin = Auth::guard('admin')->user(); | ||
| 36 | $admin->last_login_at = Carbon::now()->toDateTimeString(); | ||
| 37 | $admin->last_login_ip = $request->getClientIp(); | ||
| 38 | $admin->save(); | ||
| 39 | |||
| 40 |         return redirect()->route('admins.dashboard'); | ||
| 41 | } | ||
| 42 | |||
| 60 | 
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.