Banhammer Versions Save

Banhammer for Laravel offers a simple way to ban any Model by ID and by IP. It also allows to block requests by IP addresses and by countries.

v2.2.0

2 months ago
  • Laravel 11 support

v2.1.0

4 months ago
  • [feature request]: Expiration date for banned IPs #10 Is it now possible to add an expiration date when banning an IP (or multiple)
IP::ban("8.8.8.8", [], now()->addMinutes(10));

v2.0.0

4 months ago

This new version introduce the block by country middleware

v1.2.1

11 months ago
  • Add scopeBannedByType in Bannable.php. Thanks to @YazeedAlsaif
  • Fix N+1 Issue (#8)

v1.2.0

1 year ago
  • Adding Metas (cutom properties) to bans. You may have to run php artisan migrate if you are upgrading from v1.1.x

v1.1.5

1 year ago
  • Fix : Update cache on unban expired command

v1.1.4

1 year ago
  • Adding created by relation in IPs collection.
  • Removing ID in IPs collection.
  • Grouping by IPs to prevent duplicate IPs with the banned() method on IP.
  • Caching IP list for better performances

v1.1.3

1 year ago
  • Fix nullable attribute expired_at

v1.1.2

1 year ago
  • Fix missing alias middleware

v1.1.1

1 year ago
  • New logout.banned middleware
  • Removing auto logging out on auth.bannedmiddleware