DEV Community


Discussion on: PHP - Create your own PHP Authentication

bogkonstantin profile image
Konstantin Bogomolov • Edited

Why you decided to use trait here?

fadymr profile image
F.R Michel Author

It Can be use anywhere to check password or crypte password ( example In a Controller ) without call UserManager if you want and I don't want to have a class with a lot of lines so that it is easily maintainable.

Forem Open with the Forem app