protected function ban(Request $request, Carbon $expirationDate)
    {
        $params = [
            'ip'           => $request->getClientIp(),
            '--reason'     => 'Too many attempts.',
            '--canBanSelf' => true,
            '--expire'     => $expirationDate->toDateString(),
        ];

        $this->kernel->call('ban-management:add-rule', $params);
    }