Skip to content

[SOLVED] Customize users auto update activity query #388

Answered by kenjis
kairiex2 asked this question in Q&A
Discussion options

You must be logged in to vote

So my question, is there a way to customized that automatic save by shield to our own query?

Create your own UserModel and override the updateActiveDate() method:
https://github.com/codeigniter4/shield/pull/392/files#diff-459f49e48ae4f20464cf08fd3256652536435610f4f7db89305fe7269e539ac9
and set your UserModel to $userProvider:

public string $userProvider = 'CodeIgniter\Shield\Models\UserModel';

Replies: 7 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@datamweb
Comment options

Comment options

You must be logged in to vote
1 reply
@jozefrebjak
Comment options

Comment options

You must be logged in to vote
1 reply
@kenjis
Comment options

Comment options

You must be logged in to vote
3 replies
@pjsde
Comment options

@pjsde
Comment options

@jozefrebjak
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kairiex2
Comment options

Answer selected by kairiex2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants