ThinkPHP 5 model usage history – Single Responsibility

Time:2021-9-9

The model is used to deal with the database and is basically only responsible for adding, deleting, modifying and querying, so the relevant business logic is extendedlogiclayer

data processing

These methods are all static calls and depend on the model, but do not depend on the model data

LTErpCustomerWallet::create(1);

abstract class LTBase

Object processing

This part deals with data for a model object

new LMSuperAdmin($this->admin)->getMenuList();

/**

This work adoptsCC agreement, reprint must indicate the author and the link to this article