S
S
ssrdop2017-08-11 15:49:30
PHP
ssrdop, 2017-08-11 15:49:30

What should be the name and responsibilities of the registration, authorization and other class for the user?

A dispute arose with a colleague regarding the need to shove authorization, registration, and other methods into the user class. I say that this is fundamentally wrong.
What is the correct name for such a class and what should be its duties? Maybe examples?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
4
4iloveg, 2017-08-11
@ssrdop

Download Laravel for example, there is this example by default.

S
Sergey Sergey, 2017-08-11
@hahenty

Class User {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question