cybercog/laravel-ban
Add ban management to any Laravel Eloquent model. Supports multiple bans per model with soft-deleted history, BanService helpers, query scopes, ban/unban events, middleware to block access for banned users, scheduling, and integrations like Nova.
Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.10.0...4.11.0
Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.9.0...4.10.0
Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.8.0...4.9.0
Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.7.0...4.8.0
Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.6.1...4.7.0
LogsOutBannedUser middleware variablecreated_by_type & created_by_id are fillable now (#35)datetime cast for the deleted_at attribute (#29)isPermanent & isTemporary ban checks (#27)null value for expired_at as Carbon value (#27)Upgrade PHPUnit to 6.0 to fix Laravel 5.5 support.
Upgrade instructions from v2 to v3
Cog\Ban\Contracts\Ban moved to Cog\Contracts\Ban\BanCog\Ban\Contracts\HasBans moved to Cog\Contracts\Ban\HasBansCog\Ban\Contracts\BanService moved to Cog\Contracts\Ban\BanServiceCog\Ban\* to Cog\Laravel\Ban\*ban to bansowned_by_id to bannable_idowned_by_type to bannable_typeHasBans to BannableHasBans to BannableBan::whereOwnedBy($bannable) to Ban::whereBannable($bannable)ownedBy to bannableowner method from Ban modelgetOwner method from Ban modelwithBanned, withoutBanned, onlyBanned scopes added to all bannable models.HasBans is a collection of traits HasBannedAtHelpers, HasBannedAtScope, HasBansRelation now.Contract & Trait renamed to follow CyberCog naming convention.
CanBeBanned renamed to HasBansCanBeBanned renamed to HasBansInitial release
How can I help you explore Laravel packages today?