Laravel Ban simplifies the management of the Eloquent model's ban. Make any model bannable in minutes. The use case is not limited to the User model, any Eloquent model could be banned: Organizations, Teams, Groups, and others. Bannable model must have a nullable timestamp column named banned_at. This value is used as the flag and simplifies checks if the user was banned.

Features

  • Model can have many bans
  • Removed bans kept in history as soft deleted records
  • Most parts of the logic is handled by the BanService
  • Use case is not limited to User model, any Eloquent model could be banned
  • Has middleware to prevent banned user route access
  • Designed to work with Laravel Eloquent models
  • Using contracts to keep high customization capabilities

Project Samples

Project Activity

See All Activity >

Categories

Security

License

MIT License

Follow Laravel Ban

Laravel Ban Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Ban!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

PHP

Related Categories

PHP Security Software

Registered

2024-04-18