All notable changes to banhammer
will be documented in this file.
- The banned scope now accepts a boolean parameter to retrieve unbanned models as well, e.g.,
Model::banned(false)
. Big thanks to @onlime for the contribution!
- PR #15 Fix the return type for the fallback_url. Thanks to @dannydinges
- Added UUID support @KieranLProctor
- Added Configurable model support @KieranLProctor
- Laravel 11 support
- [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));
This new version introduce the block by country middleware
- Adding Metas (cutom properties) to bans. @mepsd
- You may have to run
php artisan migrate
if you are upgrading from v1.1.x
- Fix : Update cache on unban expired command
- 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
- Fix nullable attribute expired_at
- Fix missing alias middleware
- New
logout.banned
middleware - Removing auto logging out on
auth.banned
middleware
- New IP Class
- Scopes expired(), notExpired()
- Documentation
First release