mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
scope方法调整
This commit is contained in:
@@ -618,7 +618,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
public static function scope($name)
|
||||
{
|
||||
$model = new static();
|
||||
return $model->$name();
|
||||
$method = 'scope' . $name;
|
||||
return $model->$method();
|
||||
}
|
||||
|
||||
// 解析模型的完整命名空间
|
||||
|
||||
Reference in New Issue
Block a user