![]() |
Hi,
i am looking at this userguideĀ https://shield.codeigniter.com/user_mana...ing_users/ it doesn't make sense cause where do you put the user_id to know which user to ban? The function doesn't show any user id. so if I run this function how will it know what user to ban? Thanks, Shawn`
In the sample code, $user is a User Entity. It knows user_id.
You can get a User Entity from the User Provider. https://shield.codeigniter.com/user_mana...ing-a-user
So I would get the user like this?
Code: $users = auth()->getProvider();
Updated the docs. See the Note:
https://shield.codeigniter.com/user_mana...ing_users/ |
Welcome Guest, Not a member yet? Register Sign In |