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
Categories
SecurityLicense
MIT LicenseFollow Laravel Ban
Other Useful Business Software
Enterprise-grade ITSM, for every business
Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Laravel Ban!