正在显示
8 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -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 | } |
| @@ -8,6 +8,6 @@ class BlogCategory extends Base | @@ -8,6 +8,6 @@ class BlogCategory extends Base | ||
| 8 | { | 8 | { |
| 9 | protected $table = 'gl_blog_category'; | 9 | protected $table = 'gl_blog_category'; |
| 10 | //连接数据库 | 10 | //连接数据库 |
| 11 | - protected $connection = 'custom_mysql'; | 11 | +// protected $connection = 'custom_mysql'; |
| 12 | 12 | ||
| 13 | } | 13 | } |
| @@ -10,5 +10,5 @@ class Mail extends Base | @@ -10,5 +10,5 @@ class Mail extends Base | ||
| 10 | //自动维护create_at创建时间 updated_at修改时间 | 10 | //自动维护create_at创建时间 updated_at修改时间 |
| 11 | public $timestamps = true; | 11 | public $timestamps = true; |
| 12 | //连接数据库 | 12 | //连接数据库 |
| 13 | - protected $connection = 'custom_mysql'; | 13 | +// protected $connection = 'custom_mysql'; |
| 14 | } | 14 | } |
| @@ -10,5 +10,5 @@ class MailUser extends Base | @@ -10,5 +10,5 @@ class MailUser extends Base | ||
| 10 | //自动维护create_at创建时间 updated_at修改时间 | 10 | //自动维护create_at创建时间 updated_at修改时间 |
| 11 | public $timestamps = true; | 11 | public $timestamps = true; |
| 12 | //连接数据库 | 12 | //连接数据库 |
| 13 | - protected $connection = 'custom_mysql'; | 13 | +// protected $connection = 'custom_mysql'; |
| 14 | } | 14 | } |
| @@ -8,5 +8,5 @@ class NewsCategory extends Base | @@ -8,5 +8,5 @@ class NewsCategory extends Base | ||
| 8 | { | 8 | { |
| 9 | protected $table = 'gl_news_category'; | 9 | protected $table = 'gl_news_category'; |
| 10 | //连接数据库 | 10 | //连接数据库 |
| 11 | - protected $connection = 'custom_mysql'; | 11 | +// protected $connection = 'custom_mysql'; |
| 12 | } | 12 | } |
-
请 注册 或 登录 后发表评论