|
...
|
...
|
@@ -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');
|
|
|
|
}
|
...
|
...
|
|