Time扩展添加教务管理表编写教务管理修改用户角色添加方式

This commit is contained in:
巴掌 committed 2018-10-31 16:57:15 +08:00
1 parent 8f7868665b
commit 8c1fbfd00a
56 files changed
+2564 -299

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php
namespace app\teach\model;
use app\common\model\Base;
class Subject extends Base
{
// 分类获取器
public function getcategoryAttr($value)
{
return db('category')
->where('id',$value)
->value('title');
}
}