Laravel Ban

screenshot of Laravel Ban
laravel

Laravel Ban simplify blocking and banning Eloquent models.

Overview

Laravel Bancog simplifies the management of Eloquent model bans, allowing any Eloquent model to be made bannable easily. This package offers features such as handling ban logic, keeping ban history, firing events on ban actions, using middleware to prevent banned user access, and more.

Features

  • Model can have many bans
  • Removed bans kept in history as soft deleted records
  • Most logic is handled by the BanService
  • Has middleware to prevent banned user route access
  • Events firing on models ban and unban
  • Designed to work with Laravel Eloquent models
  • Has Laravel Nova support
  • Following PHP Standard Recommendations
laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.