Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ban Laravel Package

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.

View on GitHub
Deep Wiki
Context7
4.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/cybercog/laravel-ban/compare/4.10.0...4.11.0

4.7.0
4.6.1

Fixed

  • (#72) Fixed typo in LogsOutBannedUser middleware variable
4.6.0

Added

  • (#71) Added Inertia support
4.5.0

Added

  • (#66) Added PHP 8.x support
4.4.0

Added

  • (#63) Added configurable redirect url for the banned users

View the changes from 4.3.0 to 4.4.0

4.3.0

Added

  • (#61) Added Laravel 8 support

View the changes from 4.2.1 to 4.3.0

4.2.1

Added

  • Added Laravel 7 support

View the changes from 4.2.0 to 4.2.1

4.2.0

Added

  • (#50) Added publishable configuration file
  • (#50) Added ability to ignore default migrations

View the changes from 4.1.0 to 4.2.0

4.1.0

Added

  • (#48) Laravel 6.0 support

View the changes from 4.0.0 to 4.1.0

4.0.0

Added

  • Laravel 5.8 support

Changed

  • All methods are strict typed now

Removed

  • Laravel 5.1, 5.2, 5.3 and 5.4 support

View the changes from 3.5.0 to 4.0.0

3.5.0

Added

  • Ban created_by_type & created_by_id are fillable now (#35)

View the changes from 3.4.0 to 3.5.0

3.4.0

Added

  • Add datetime cast for the deleted_at attribute (#29)

Fixed

  • Fixed bannable models ban & unban with applied BannedAtScope (#30)

View the changes from 3.3.0 to 3.4.0

3.3.0

Added

  • Add isPermanent & isTemporary ban checks (#27)

Fixed

  • Stop trying to parse null value for expired_at as Carbon value (#27)

View the changes from 3.2.0 to 3.3.0

3.2.0

Added

  • Laravel 5.7 support (#26)
  • Middleware to force logout banned users (#25)

View the changes from 3.1.0 to 3.2.0

3.1.0

Added

  • Laravel 5.6 support (#8)

View the changes from 3.0.1 to 3.1.0

3.0.1

Upgrade PHPUnit to 6.0 to fix Laravel 5.5 support.

View the changes from 3.0.0 to 3.0.1

3.0.0

Upgrade instructions from v2 to v3

Added

  • Laravel 5.5 support (#7)
  • Add package auto discovery for L5.5 (#8)
  • Auto-loading migrations

Changed

  • Cog\Ban\Contracts\Ban moved to Cog\Contracts\Ban\Ban
  • Cog\Ban\Contracts\HasBans moved to Cog\Contracts\Ban\HasBans
  • Cog\Ban\Contracts\BanService moved to Cog\Contracts\Ban\BanService
  • All classes namespaces moved from Cog\Ban\* to Cog\Laravel\Ban\*
  • Renamed database table ban to bans
  • Renamed database column owned_by_id to bannable_id
  • Renamed database column owned_by_type to bannable_type
  • Renamed trait HasBans to Bannable
  • Renamed contract HasBans to Bannable
  • Renamed Ban::whereOwnedBy($bannable) to Ban::whereBannable($bannable)
  • Renamed Ban model relation ownedBy to bannable

Removed

  • Dropped Laravel Ownership Dependency (#9)
  • Removed owner method from Ban model
  • Removed getOwner method from Ban model

View the changes from 2.1.1 to 3.0.0

2.1.1

Changed

View the changes from 2.1.0 to 2.1.1

2.1.0

Added

  • withBanned, withoutBanned, onlyBanned scopes added to all bannable models.

Changed

  • HasBans is a collection of traits HasBannedAtHelpers, HasBannedAtScope, HasBansRelation now.

View the changes from 2.0.1 to 2.1.0

2.0.1

Changed

  • Events properties are public now: #4

View the changes from 2.0.0 to 2.0.1

2.0.0

Contract & Trait renamed to follow CyberCog naming convention.

Changed

  • Contract CanBeBanned renamed to HasBans
  • Trait CanBeBanned renamed to HasBans

View the changes from 1.0.0 to 2.0.0

1.0.0

Initial release

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport