K
K
kor-elf2020-05-24 21:27:13
Design patterns
kor-elf, 2020-05-24 21:27:13

Do you think it's worth splitting models (PHP / Laravel)?

Hello! I usually don't ask questions and try to figure it out myself. But it's interesting what people think. Today I thought about dividing models into 4 parts (PostCreatedModel, PostUpdatedModel, PostDeletedModel, PostFindModel). It seems to me that in the future it will be easier to expand the code this way. Or is it better not to split the model into parts? Who thinks about it? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
netrox, 2020-05-24
@kor-elf

Read about CQRS and DDD.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question