作者 lyh

gx

@@ -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 }
@@ -8,5 +8,5 @@ class BlogLabel extends Base @@ -8,5 +8,5 @@ class BlogLabel extends Base
8 { 8 {
9 protected $table = 'gl_blog_label'; 9 protected $table = 'gl_blog_label';
10 //连接数据库 10 //连接数据库
11 - protected $connection = 'custom_mysql'; 11 +// protected $connection = 'custom_mysql';
12 } 12 }
@@ -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 News extends Base @@ -8,5 +8,5 @@ class News extends Base
8 { 8 {
9 protected $table = 'gl_news'; 9 protected $table = 'gl_news';
10 //连接数据库 10 //连接数据库
11 - protected $connection = 'custom_mysql'; 11 +// protected $connection = 'custom_mysql';
12 } 12 }
@@ -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 }
@@ -8,5 +8,5 @@ class NewsLabel extends Base @@ -8,5 +8,5 @@ class NewsLabel extends Base
8 { 8 {
9 protected $table = 'gl_news_label'; 9 protected $table = 'gl_news_label';
10 //连接数据库 10 //连接数据库
11 - protected $connection = 'custom_mysql'; 11 +// protected $connection = 'custom_mysql';
12 } 12 }