ThinkPHP 5 model usage history – global definition

Time:2021-9-10

Common functions are defined directly in the base, including the following:

Attribute definition

class MTBase extends Model

Getter

class MTBase extends Model

cache

class MTBase extends Model

Observer

class MTBase extends Model

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