Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dosen´t refresh the collection when I ban a user #80

Open
olkotz opened this issue Jan 28, 2022 · 4 comments
Open

Dosen´t refresh the collection when I ban a user #80

olkotz opened this issue Jan 28, 2022 · 4 comments

Comments

@olkotz
Copy link

olkotz commented Jan 28, 2022

Hi everyone! Excelent work with the package!!!

I have found in one of my tests that the variable that contained the user model instance was not updated after applying the ban() function to it.

Example:
$user = User::find($id);
$user->ban();
if i look into the $user dosen´t have updated the field banned_at.

I think this should not be the case and should be updated.
Hope this helps!

Thanks!!!

@antonkomarev
Copy link
Member

How can we reproduce this issue? How are you checking that model was not updated?

@gogl92
Copy link

gogl92 commented Aug 6, 2022

I was able to reproduce this issue, with PHP 8.0 and Laravel 9, I'm not sure if this is a cache configuration, I did it through tinker @antonkomarev

@antonkomarev
Copy link
Member

It will be great to reproduce bug in integration tests, it will help a lot

@gogl92
Copy link

gogl92 commented Aug 9, 2022

@antonkomarev Sure, I'll try to add a test

@antonkomarev antonkomarev changed the title Dosen´t refresh the collection when i ban a user Dosen´t refresh the collection when I ban a user Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants