Appearance
1.场景:boot 名为 boot 开头的方法,用于自动执行某些操作
疑问:hasTest无法修改其他名字,修改无法生效
trait HasTest
{
public static function bootHasTest() {
static::addGlobalScope(new TestScope());
}
}2.title能查出数据,filter没有定义
http://blue.com/api/client/billtest?page=1&pageSize=15