• Laravel
  • PHP
  • Laravel Ban – Simplify blocking and banning Eloquent models

    Laravel Ban simplify management of Eloquent model’s ban. Make any model bannable in a minutes!

    Use case is not limited to User model, any Eloquent model could be banned: Organizations, Teams, Groups and others.

    Contents

    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.
    • Has middleware to prevent banned user route access.
    • Use case is not limited to User model, any Eloquent model could be banned.
    • Events firing on models ban and unban.
    • Designed to work with Laravel Eloquent models.
    • Has Laravel Nova support.
    • Using contracts to keep high customization capabilities.
    • Using traits to get functionality out of the box.
    • Following PHP Standard Recommendations:
    • Covered with unit tests.

    Github: https://github.com/cybercog/laravel-ban

    Để lại một bình luận

    Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

    1 mins