'1.2.3.4', 'banned_until' => now()->addHour(), 'attempts' => 10]); BannedIp::create(['ip' => '5.6.7.8', 'banned_until' => now()->subHour(), 'attempts' => 10]); $active = BannedIp::active()->pluck('ip')->all(); $this->assertSame(['1.2.3.4'], $active); } }