作者 lyh

gx

... ... @@ -9,7 +9,7 @@ class Blog extends Base
{
protected $table = 'gl_blog';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
public function user(){
return $this->hasMany(User::class,'operator_id','id');
}
... ...
... ... @@ -8,6 +8,6 @@ class BlogCategory extends Base
{
protected $table = 'gl_blog_category';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -8,5 +8,5 @@ class BlogLabel extends Base
{
protected $table = 'gl_blog_label';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -10,5 +10,5 @@ class Mail extends Base
//自动维护create_at创建时间 updated_at修改时间
public $timestamps = true;
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -10,5 +10,5 @@ class MailUser extends Base
//自动维护create_at创建时间 updated_at修改时间
public $timestamps = true;
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -8,5 +8,5 @@ class News extends Base
{
protected $table = 'gl_news';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -8,5 +8,5 @@ class NewsCategory extends Base
{
protected $table = 'gl_news_category';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -8,5 +8,5 @@ class NewsLabel extends Base
{
protected $table = 'gl_news_label';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...