正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -9,7 +9,7 @@ class Blog extends Base | @@ -9,7 +9,7 @@ class Blog extends Base | ||
| 9 | { | 9 | { |
| 10 | protected $table = 'gl_blog'; | 10 | protected $table = 'gl_blog'; |
| 11 | //连接数据库 | 11 | //连接数据库 |
| 12 | -// protected $connection = 'custom_mysql'; | 12 | + protected $connection = 'custom_mysql'; |
| 13 | public function user(){ | 13 | public function user(){ |
| 14 | return $this->hasMany(User::class,'operator_id','id'); | 14 | return $this->hasMany(User::class,'operator_id','id'); |
| 15 | } | 15 | } |
-
请 注册 或 登录 后发表评论