init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
21
application/admin/model/shopro/data/Page.php
Normal file
21
application/admin/model/shopro/data/Page.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\shopro\data;
|
||||
|
||||
use app\admin\model\shopro\Common;
|
||||
|
||||
class Page extends Common
|
||||
{
|
||||
|
||||
// 表名
|
||||
protected $name = 'shopro_data_page';
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
];
|
||||
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(self::class, 'group', 'group')->order('id asc');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user