Skip to content

something weird when banning models multiple times. #93

@Abdelhalim-Merabet

Description

@Abdelhalim-Merabet

hello
I was trying your package
not sure if I did something wrong but when I Tinkered with a user and I banned him twice (for fun);
the Bans table updated for the number of bans (that's normal, I guess for history); but when I tried to unban him only the last ban got soft deleted on the Bans table, and the Banned_at column on Users table didn't update to Nulled.
so, I was stuck with a Banned User

steps to reproduce :

  • fresh Laravel install with your Package
  • tinker and create a user
  • ban him more than 1 time via $user->ban(); in Tinker always
  • unban Him with $user->unban();
  • he won't be..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions