Skip to content

Get list of all users #474

Answered by kenjis
MarcPinnell asked this question in Q&A
Oct 13, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

UserModel uses soft deletes. So it is necessary unless you want to get deleted users.
See https://codeigniter4.github.io/CodeIgniter4/models/model.html#usesoftdeletes

If you really need to remove it, you need to extend CodeIgniter\Model.
use withDeleted().

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcPinnell
Comment options

You must be logged in to vote
2 replies
@kenjis
Comment options

@MarcPinnell
Comment options

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