| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function handle() |
||
| 31 | { |
||
| 32 | $this->comment('Clearing authentication log...'); |
||
| 33 | |||
| 34 | $days = config('authentication-log.older'); |
||
| 35 | $from = Carbon::now()->subDays($days)->format('Y-m-d H:i:s'); |
||
| 36 | |||
| 37 | AuthenticationLog::where('login_at', '<', $from)->delete(); |
||
| 38 | |||
| 39 | $this->info('Authentication log cleared successfully.'); |
||
| 40 | } |
||
| 42 |